function [orderedAlgorithms] = orderAlgorithms(predictions,actuals,errorMeasure,myAlgorithms) % now depending on which error measure was chosen, % calculate the error measure and get the results if strcmp(errorMeasure, 'MAR') == 1 orderedAlgorithms = myMAR(actuals, predictions,myAlgorithms); elseif strcmp(errorMeasure, 'MMRE') == 1 orderedAlgorithms = myMMRE(actuals, predictions,myAlgorithms); elseif strcmp(errorMeasure, 'MMER') == 1 orderedAlgorithms = myMMER(actuals, predictions,myAlgorithms); elseif strcmp(errorMeasure, 'MBRE') == 1 orderedAlgorithms = myMBRE(actuals, predictions,myAlgorithms); elseif strcmp(errorMeasure, 'MIBRE') == 1 orderedAlgorithms = myMIBRE(actuals, predictions,myAlgorithms); elseif strcmp(errorMeasure, 'RSD') == 1 orderedAlgorithms = myRSD(actuals, predictions,myAlgorithms); elseif strcmp(errorMeasure, 'LSD') == 1 orderedAlgorithms = myLSD(actuals, predictions,myAlgorithms); elseif strcmp(errorMeasure, 'MDMRE') == 1 orderedAlgorithms = myMDMRE(actuals, predictions,myAlgorithms); elseif strcmp(errorMeasure, 'Pred25') == 1 orderedAlgorithms = myPred25(actuals, predictions,myAlgorithms); else fprintf('ERROR: NO ERROR MEASURE WAS SELECTED!\n'); end end