Home > @AdaBooster > display.m

display

PURPOSE ^

display(ab): the display function for the adaBooster classifier class.

SYNOPSIS ^

function display(ab)

DESCRIPTION ^

 display(ab): the display function for the adaBooster classifier class.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function display(ab)
0002 % display(ab): the display function for the adaBooster classifier class.
0003 
0004 disp('AdaBooster Classifier');
0005 if isnan(ab.thresh),
0006     disp('  classifier is not trained');
0007 else
0008     disp('  classifier is trained, the learnt paramters are:\n');
0009     if isnan(ab.detectionRate)
0010         fprintf('\tNo target detection rate was specified\n');
0011     else
0012         fprintf('\tTarget detection rate = %f\n', ab.detectionRate);
0013     end
0014     fprintf('\tThreshold = %f\n', ab.thresh);
0015     fprintf('\tNumber of stages = %d\n', length(ab.clsWeights));
0016     for i = 1:length(ab.clsWeights)
0017         fprintf('* Stage # %d\n', i);
0018         disp('------------')
0019         fprintf('+ Weight = %f\n', ab.clsWeights(i));
0020         display(ab.trndCls{i});
0021     end
0022 end

Generated on Sun 29-Sep-2013 01:25:24 by m2html © 2005