0001 function display(ab)
0002
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