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

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

Definition at line 61 of file WeibullSim.h.

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

00062     {
00063         Real64 score = 0;
00064         for (int i=0 ; i<v1.Size() ; i+=2)
00065         {
00066             //score += WeibullSim((Real64) v1[i], (Real64) v1[i+1],
00067             //                    (Real64) v2[i], (Real64) v2[i+1]);
00068             // This seems to be about 10% faster on windows...
00069             Real64 b1 = v1[i];
00070             Real64 g1 = v1[i+1];
00071             Real64 b2 = v2[i];
00072             Real64 g2 = v2[i+1];
00073             if (g1!=0 && g2!=0 && b1!=0 && b2!=0)
00074             {
00075                 Real64 g = (g1>g2 ? g2/g1 : g1/g2);
00076                 Real64 b = (b1>b2 ? b2/b1 : b1/b2);
00077                 score += g*b;
00078             }
00079         }
00080         return score;
00081         //return score / (v1.Size() / 2);
00082     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:27:35 2010 for ImpalaSrc by  doxygen 1.5.1