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

bool* Impala::Util::MakeRelativeComplement ( bool *  set1,
bool *  set2,
int  size 
)

returns a new filter that is the 'relative complement of set2 in set1' which is normaly written as set1 \ set2.

I hope the that makes it clear in which order the arguments should go

Definition at line 28 of file FilterOperations.h.

Referenced by Impala::Core::Feature::SplitSet().

00029 {
00030     bool* result = new bool[size];
00031     for(int i=0 ; i<size ; ++i)
00032         result[i] = set1[i] && !set2[i];
00033     return result;
00034 }


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