Lines Matching refs:weights
74 means = weights = probs = inv_eigen_values = log_weight_div_det = 0;
81 means = weights = probs = inv_eigen_values = log_weight_div_det = 0;
99 cvReleaseMat( &weights );
156 const CvMat* p = params.weights;
178 if( params.weights )
180 const CvMat* w = params.weights;
186 CV_ERROR( CV_StsBadArg, "The array of weights must be a valid "
344 CV_CALL( weights = cvCreateMat( 1, nclusters, CV_64FC1 ));
429 if( params.weights && params.covs )
432 cvReshape( weights, weights, 1, params.weights->rows );
433 cvConvert( params.weights, weights );
434 cvReshape( weights, weights, 1, 1 );
435 cvMaxS( weights, 0., weights );
436 cvMinMaxLoc( weights, 0, &maxval );
438 cvSet( &weights, cvScalar(1./nclusters) );
439 cvNormalize( weights, weights, 1., 0, CV_L1 );
510 cvSet( weights, cvScalar(1./nclusters) );
560 weights->data.db[i] = (double)cluster_size/(double)nsamples;
830 log_weight_div_det->data.db[0] = -2*log(weights->data.db[0]/log_weight);
913 CV_CALL(cvLog( weights, log_weights ));
990 weights->data.db[k] = sum;
1035 cvConvertScale( weights, weights, 1./(double)nsamples, 0 );
1036 cvMaxS( weights, DBL_MIN, weights );
1102 return weights;