diff util/SMALL_AMT_plot.m @ 24:fc395272d53e

(none)
author idamnjanovic
date Tue, 27 Apr 2010 13:33:00 +0000
parents 33850553b702
children 8e660fd14774
line wrap: on
line diff
--- a/util/SMALL_AMT_plot.m	Tue Apr 27 13:32:46 2010 +0000
+++ b/util/SMALL_AMT_plot.m	Tue Apr 27 13:33:00 2010 +0000
@@ -1,21 +1,30 @@
 function figAMT=SMALL_AMT_plot(SMALL, AMT_res)
-%   Ivan Damnjanovic 2010
+%
+%   Centre for Digital Music, Queen Mary, University of London.
+%   This file copyright 2009 Ivan Damnjanovic.
+%
+%   This program is free software; you can redistribute it and/or
+%   modify it under the terms of the GNU General Public License as
+%   published by the Free Software Foundation; either version 2 of the
+%   License, or (at your option) any later version.  See the file
+%   COPYING included with this distribution for more information.
+%   
 %   Function gets as input SMALL structure and plots  AMT
-  
 
-  figAMT=figure('Name','Automatic Music Transcription');
-  
-  m=size(AMT_res,2);
- 
+
+figAMT=figure('Name','Automatic Music Transcription');
+
+m=size(AMT_res,2);
+
 for i =1:m
-  subplot(m,1, i);plot(AMT_res(i).tp_notes(:,2), AMT_res(i).tp_notes(:,1),'ko', ...
-      AMT_res(i).tp_notes(:,4), AMT_res(i).tp_notes(:,3),'gx', ...
+    subplot(m,1, i);plot(AMT_res(i).tp_notes(:,2), AMT_res(i).tp_notes(:,1),'ko', ...
+        AMT_res(i).tp_notes(:,4), AMT_res(i).tp_notes(:,3),'gx', ...
         AMT_res(i).oe_notes(:,2), AMT_res(i).oe_notes(:,1),'bo', ...
-            AMT_res(i).oe_notes(:,4), AMT_res(i).oe_notes(:,3),'bx', ...
-                AMT_res(i).fn_notes_wo_oe(:,2), AMT_res(i).fn_notes_wo_oe(:,1),'ro', ...
-                     AMT_res(i).fp_notes_wo_oe(:,2), AMT_res(i).fp_notes_wo_oe(:,1),'rx')
-        title(sprintf('%s dictionary in %.2f s - TP=%d FN=%d (Octave Errors = %d) FP=%d', SMALL.DL(i).name, SMALL.DL(i).time, AMT_res(i).TP, AMT_res(i).FN, size(AMT_res(i).oe_notes,1), AMT_res(i).FP));
-          xlabel('Time') 
-            ylabel('Note Number')
-
+        AMT_res(i).oe_notes(:,4), AMT_res(i).oe_notes(:,3),'bx', ...
+        AMT_res(i).fn_notes_wo_oe(:,2), AMT_res(i).fn_notes_wo_oe(:,1),'ro', ...
+        AMT_res(i).fp_notes_wo_oe(:,2), AMT_res(i).fp_notes_wo_oe(:,1),'rx')
+    title(sprintf('%s dictionary in %.2f s - TP=%d FN=%d (Octave Errors = %d) FP=%d', SMALL.DL(i).name, SMALL.DL(i).time, AMT_res(i).TP, AMT_res(i).FN, size(AMT_res(i).oe_notes,1), AMT_res(i).FP));
+    xlabel('Time')
+    ylabel('Note Number')
+    
 end