Lines Matching defs:num_samples
59 void createConcentricSpheresTestSet( int num_samples, int num_features, int num_classes,
62 if( num_samples < 1 )
63 CV_Error( CV_StsBadArg, "num_samples parameter must be positive" );
73 _samples.create( num_samples, num_features, CV_32F );
74 _responses.create( 1, num_samples, CV_32S );
82 randMVNormal( mean, cov, num_samples, _samples );
99 num_classes = std::min( num_samples, num_classes );
100 for( i = 0, cur_class = 0; i < num_samples; ++cur_class )
102 int last_idx = num_samples * (cur_class + 1) / num_classes - 1;
106 for( ; i < num_samples && dis[i].d <= max_dst; ++i )