fixed CvSVM

This commit is contained in:
Maria Dimashova 2010-05-30 11:03:42 +00:00
parent 6ebdcb879b
commit a8bc74f2e1

View File

@ -317,7 +317,8 @@ void CvSVMKernel::calc_rbf( int vcount, int var_count, const float** vecs,
results[j] = (Qfloat)(s*gamma);
}
cvExp( &R, &R );
if( vcount > 0 )
cvExp( &R, &R );
}