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 }