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

bool Impala::Core::Training::Equals ( const svm_problem p1,
const svm_problem p2 
)

Definition at line 67 of file Equals.h.

References Equals(), svm_problem::l, svm_problem::x, and svm_problem::y.

00068 {
00069     if(p1->l != p2->l)
00070         return false;
00071     for(int i=0 ; i<p1->l ; ++i)
00072     {
00073         if(p1->y[i] != p2->y[i])
00074             return false;
00075         if(!Equals(p1->x[i], p2->x[i]))
00076             return false;
00077     }
00078     return true;
00079 }

Here is the call graph for this function:


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