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

bool Impala::Core::Training::Equals ( const svm_model *  m1,
const svm_model *  m2 
)

Definition at line 81 of file Equals.h.

References Equals(), and EqualsForModel().

00082 {
00083     if(!EqualsForModel(&m1->param, &m2->param))
00084         return false;
00085     if(m1->nr_class != m2->nr_class)
00086         return false;
00087     for(int i=0 ; i<m1->nr_class ; ++i)
00088     {
00089         if(m1->label[i] != m2->label[i])
00090             return false;
00091     }
00092     if(m1->l != m2->l)
00093         return false;
00094     for(int i=0 ; i<m1->l ; ++i)
00095     {
00096         if(!Equals(m1->SV[i], m2->SV[i]))
00097             return false;
00098     }
00099     return true;
00100 }

Here is the call graph for this function:


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