GETFEATURESINDEX return the info of the features used
0001 function [ info ] = getFeaturesInfo( cl ) 0002 %GETFEATURESINDEX return the info of the features used 0003 0004 if ~cl.isTrained 0005 error('classifier is not trained'); 0006 end 0007 0008 pred = cl.trainedCl.CutVar{1}; 0009 index = str2double(pred(2:end)); 0010 0011 %return index of feature and splitval used 0012 info.id = index; 0013 info.index = index; 0014 info.splitVal = cl.trainedCl.CutPoint(1); 0015 0016 end 0017