Home | History | Annotate | Download | only in src

Lines Matching full:train_data

119 void CvEM::set_params( const CvEMParams& _params, const CvVectors& train_data )
160 p->rows != train_data.count ||
173 m->cols != train_data.dims )
197 cov->rows != cov->cols || cov->cols != train_data.dims )
307 CvVectors train_data;
310 train_data.data.fl = 0;
311 train_data.count = 0;
323 0, _sample_idx, false, (const float***)&train_data.data.fl,
324 &train_data.count, &train_data.dims, &train_data.dims,
327 CV_CALL( set_params( _params, train_data ));
328 nsamples = train_data.count;
330 dims = train_data.dims;
357 init_em( train_data );
358 log_likelihood = run_em( train_data );
390 cvFree( &train_data.data.ptr );
396 void CvEM::init_em( const CvVectors& train_data )
406 int nclusters = params.nclusters, nsamples = train_data.count, dims = train_data.dims;
409 init_auto( train_data );
445 init_auto( train_data );
483 void CvEM::init_auto( const CvVectors& train_data )
494 int nclusters = params.nclusters, nsamples = train_data.count, dims = train_data.dims;
503 src.data.ptr = train_data.data.ptr[i];
520 kmeans( train_data, nclusters, labels, cvTermCriteria( CV_TERMCRIT_ITER,
522 CV_CALL( cvSortSamplesByClasses( (const float**)train_data.data.fl,
555 hdr[j - left].data.fl = train_data.data.fl[j];
573 void CvEM::kmeans( const CvVectors& train_data, int nclusters, CvMat* labels,
591 nsamples = train_data.count;
592 dims = train_data.dims;
619 const float* s = train_data.data.fl[i];
665 const float* s = train_data.data.fl[i];
709 s = train_data.data.fl[i];
775 double CvEM::run_em( const CvVectors& train_data )
789 int nsamples = train_data.count, dims = train_data.dims, nclusters = params.nclusters;
858 const float* src = train_data.data.fl[i];