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

double sigmoid_predict ( double  decision_value,
double  A,
double  B 
)

Definition at line 1654 of file svm.cpp.

Referenced by svm_predict_probability().

01655 {
01656         double fApB = decision_value*A+B;
01657         if (fApB >= 0)
01658                 return exp(-fApB)/(1.0+exp(-fApB));
01659         else
01660                 return 1.0/(1+exp(fApB)) ;
01661 }


Generated on Fri Mar 19 10:17:09 2010 for ImpalaSrc by  doxygen 1.5.1