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

template<class ArrayT, class SimFtorT>
Real64 Impala::Core::Vector::AverageSimilarity ( typename VectorSet< ArrayT >::VectorT  example,
VectorSet< ArrayT > *  src,
int  end,
SimFtorT  simFunc 
) [inline]

Definition at line 16 of file AverageSimilarity.h.

References Impala::Core::Vector::VectorSet< ArrayT >::GetVector().

00018 {
00019     Real64 totSim = 0;
00020     for (int i=0 ; i<end ; i++)
00021     {
00022         Real64 sim = simFunc.DoIt(example, src->GetVector(i, true));
00023         totSim += sim;
00024     }
00025     return totSim / end;
00026 }

Here is the call graph for this function:


Generated on Thu Jan 13 09:21:35 2011 for ImpalaSrc by  doxygen 1.5.1