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

template<class ElemT>
ElemT Impala::Core::Vector::KullbackDivergenceFtor< ElemT >::DoIt ( const VectorTem< ElemT > &  v1,
const VectorTem< ElemT > &  v2 
) [inline]

Definition at line 32 of file KullbackDivergence.h.

References Impala::Core::Vector::VectorTem< ElemT >::Size().

00033     {
00034         ElemT score = 0;
00035         for (int i=0 ; i<v1.Size() ; i++)
00036             if((v2[i]!=0)&&(v1[i]!=0))
00037                 score += v1[i]*log(v1[i]/v2[i]);
00038         return score;
00039     }

Here is the call graph for this function:


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