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

bool Impala::Core::Training::Equals ( const svm_node sv1,
const svm_node sv2 
)

Definition at line 55 of file Equals.h.

References cPrecision, and svm_node::index.

00056 {
00057     for(int j=0 ; sv1[j].index != -1 && sv2[j].index != -1 ; ++j)
00058     {
00059         if(sv1[j].index != sv2[j].index)
00060             return false;
00061         if(abs(sv1[j].value - sv2[j].value) > cPrecision)
00062             return false;
00063     }
00064     return true;
00065 }


Generated on Fri Mar 19 11:22:57 2010 for ImpalaSrc by  doxygen 1.5.1