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

bool Impala::Core::Training::EqualsForModel ( const svm_parameter p1,
const svm_parameter p2 
)

Definition at line 44 of file Equals.h.

References cPrecision, svm_parameter::gamma, svm_parameter::kernel_type, and svm_parameter::svm_type.

Referenced by Equals().

00045 {
00046     if(p1->svm_type != p2->svm_type)
00047         return false;
00048     if(p1->kernel_type != p2->kernel_type)
00049         return false;
00050     if(abs(p1->gamma - p2->gamma) > cPrecision)
00051         return false;
00052     return true;
00053 }


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