Skip to content

Commit a789c08

Browse files
committed
ml::EM: add documentation for predict() method
1 parent 124c482 commit a789c08

File tree

1 file changed

+9
-0
lines changed
  • modules/ml/include/opencv2

1 file changed

+9
-0
lines changed

modules/ml/include/opencv2/ml.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,15 @@ class CV_EXPORTS_W EM : public StatModel
829829
*/
830830
CV_WRAP virtual void getCovs(CV_OUT std::vector<Mat>& covs) const = 0;
831831

832+
/** @brief Returns posterior probabilities for the provided samples
833+
834+
@param samples The input samples, floating-point matrix
835+
@param results The optional output \f$ nSamples \times nClusters\f$ matrix of results. It contains
836+
posterior probabilities for each sample from the input
837+
@param flags This parameter will be ignored
838+
*/
839+
CV_WRAP virtual float predict( InputArray samples, OutputArray results=noArray(), int flags=0 ) const = 0;
840+
832841
/** @brief Returns a likelihood logarithm value and an index of the most probable mixture component
833842
for the given sample.
834843

0 commit comments

Comments
 (0)