Home > @BestDecisionStumpClassifier > BestDecisionStumpClassifier.m

BestDecisionStumpClassifier

PURPOSE ^

function [cl] = BestDecisionStumpClassifier

SYNOPSIS ^

function [cl] = BestDecisionStumpClassifier(nc)

DESCRIPTION ^

 function [cl] = BestDecisionStumpClassifier
 constructor for the BestDecisionStumpClassifier class

   Inputs:
       nc: number of classes

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [cl] = BestDecisionStumpClassifier(nc)
0002 % function [cl] = BestDecisionStumpClassifier
0003 % constructor for the BestDecisionStumpClassifier class
0004 %
0005 %   Inputs:
0006 %       nc: number of classes
0007 
0008 if nargin == 0 || isempty(nc)
0009     error('invalid input arguments')
0010 end
0011 
0012 cl.isTrained = false;
0013 cl.trainedCl = NaN;
0014 
0015 cl = class(cl, 'BestDecisionStumpClassifier', Classifier(nc));

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