From a789c085882339fe04862ed66b899b3b81a0e55f Mon Sep 17 00:00:00 2001 From: Vladislav Sovrasov Date: Mon, 30 Jan 2017 17:11:19 +0300 Subject: [PATCH] ml::EM: add documentation for predict() method --- modules/ml/include/opencv2/ml.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/ml/include/opencv2/ml.hpp b/modules/ml/include/opencv2/ml.hpp index 2067ac8375..e9182a8352 100644 --- a/modules/ml/include/opencv2/ml.hpp +++ b/modules/ml/include/opencv2/ml.hpp @@ -829,6 +829,15 @@ public: */ CV_WRAP virtual void getCovs(CV_OUT std::vector& covs) const = 0; + /** @brief Returns posterior probabilities for the provided samples + + @param samples The input samples, floating-point matrix + @param results The optional output \f$ nSamples \times nClusters\f$ matrix of results. It contains + posterior probabilities for each sample from the input + @param flags This parameter will be ignored + */ + CV_WRAP virtual float predict( InputArray samples, OutputArray results=noArray(), int flags=0 ) const = 0; + /** @brief Returns a likelihood logarithm value and an index of the most probable mixture component for the given sample.