annotate evaluationtools/format_recall_results.m @ 1:8973548174c1 tip

adding tools to repo
author christopherh
date Mon, 06 May 2013 14:43:47 +0100
parents
children
rev   line source
christopherh@1 1
christopherh@1 2
christopherh@1 3 function outtext = format_recall_results(results, params, algonames, songnames)
christopherh@1 4
christopherh@1 5 [algorithms, songs] = size(results(:,:,1));
christopherh@1 6
christopherh@1 7 outtext = ['Recall results \nComparison ' params.comparison ...
christopherh@1 8 '\nCardinality ' num2str(params.cardinality) ...
christopherh@1 9 '\nInversion ' num2str(params.inversion) ...
christopherh@1 10 '\nDictionary ' cell2list(params.dictionary, ', ') ...
christopherh@1 11 '\nFrame rate ' num2str(params.framerate) ...
christopherh@1 12 '\n\n Song name; ' cell2list(algonames, ';;')];
christopherh@1 13
christopherh@1 14
christopherh@1 15
christopherh@1 16
christopherh@1 17 for i = 1:songs
christopherh@1 18
christopherh@1 19 outtext = [outtext '\n' songnames{i} ';' ];
christopherh@1 20
christopherh@1 21 for j = 1:algorithms
christopherh@1 22
christopherh@1 23 outtext = [outtext num2str(results(j,i,1)) ';' num2str(results(j,i,2)) ';'];
christopherh@1 24
christopherh@1 25 end
christopherh@1 26
christopherh@1 27 end