returns the number of elemnts present in the input filters (i.e. counts the number of true's) Definition at line 49 of file FilterOperations.h. Referenced by Impala::Core::Feature::Gain(), Impala::Core::Feature::MakeRandomTree(), Impala::Core::Feature::TestMakeRandomTree::testSplitSet(), and Impala::Core::Feature::TryRandomSplit(). 00050 { 00051 int count=0; 00052 for(int i=0 ; i<size ; ++i) 00053 if(set[i]) 00054 ++count; 00055 return count; 00056 }
|