Lines Matching refs:probs
121 OutputArray probs) in trainEM() argument
125 return doTrain(START_AUTO_STEP, logLikelihoods, labels, probs); in trainEM()
134 OutputArray probs) in trainE() argument
144 return doTrain(START_E_STEP, logLikelihoods, labels, probs); in trainE()
151 OutputArray probs) in trainM() argument
157 return doTrain(START_M_STEP, logLikelihoods, labels, probs); in trainM()
163 Mat samples = _inputs.getMat(), probs, probsrow; in predict() local
180 probsrow = probs.row(i); in predict()
203 Mat probs; in predict2() local
209 probs = _probs.getMat(); in predict2()
212 return computeProbabilities(sample, !probs.empty() ? &probs : 0, ptype); in predict2()
236 int nclusters, int covMatType, const Mat* probs, const Mat* means, in checkTrainData() argument
256 CV_Assert(!probs || in checkTrainData()
257 (!probs->empty() && in checkTrainData()
258 probs->rows == nsamples && probs->cols == nclusters && in checkTrainData()
259 (probs->type() == CV_32FC1 || probs->type() == CV_64FC1))); in checkTrainData()
290 CV_Assert(probs); in checkTrainData()
302 static void preprocessProbability(Mat& probs) in preprocessProbability() argument
304 max(probs, 0., probs); in preprocessProbability()
306 const double uniformProbability = (double)(1./probs.cols); in preprocessProbability()
307 for(int y = 0; y < probs.rows; y++) in preprocessProbability()
309 Mat sampleProbs = probs.row(y); in preprocessProbability()
475 bool doTrain(int startStep, OutputArray logLikelihoods, OutputArray labels, OutputArray probs) in doTrain() argument
544 if(probs.needed()) in doTrain()
545 trainProbs.copyTo(probs); in doTrain()
557 Vec2d computeProbabilities(const Mat& sample, Mat* probs, int ptype) const in computeProbabilities() argument
617 if(probs) in computeProbabilities()
618 L.convertTo(*probs, ptype, 1./expDiffSum); in computeProbabilities()