Commit be189a45 authored by Maria Dimashova's avatar Maria Dimashova

fixed CvSVM

parent a8bc74f2
......@@ -261,7 +261,8 @@ void CvSVMKernel::calc_poly( int vcount, int var_count, const float** vecs,
{
CvMat R = cvMat( 1, vcount, QFLOAT_TYPE, results );
calc_non_rbf_base( vcount, var_count, vecs, another, results, params->gamma, params->coef0 );
cvPow( &R, &R, params->degree );
if( vcount > 0 )
cvPow( &R, &R, params->degree );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment