Commit a8bc74f2 authored by Maria Dimashova's avatar Maria Dimashova

fixed CvSVM

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