diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/evaluationtools/format_recall_results.m	Mon May 06 14:43:47 2013 +0100
@@ -0,0 +1,27 @@
+
+
+function  outtext = format_recall_results(results, params, algonames, songnames)
+
+[algorithms, songs] = size(results(:,:,1));
+
+outtext = ['Recall results \nComparison ' params.comparison  ...
+           '\nCardinality ' num2str(params.cardinality)   ...
+           '\nInversion ' num2str(params.inversion)  ...
+           '\nDictionary ' cell2list(params.dictionary, ', ') ...
+           '\nFrame rate ' num2str(params.framerate) ...
+           '\n\n Song name; ' cell2list(algonames, ';;')];
+
+
+       
+           
+for i = 1:songs
+    
+     outtext = [outtext '\n' songnames{i} ';' ];
+    
+    for j = 1:algorithms
+        
+       outtext = [outtext num2str(results(j,i,1)) ';' num2str(results(j,i,2)) ';'];
+          
+    end
+    
+end
\ No newline at end of file