function [lossValues, winValues, tieValues] = orderAlgorithms(predictions,actuals,errorMeasure,myAlgorithms, myPreProcessors, datasetName)

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



end