Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

int Impala::Util::Count ( bool *  set,
int  size 
)

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 }


Generated on Thu Jan 13 09:24:05 2011 for ImpalaSrc by  doxygen 1.5.1