Click or drag to resize

NormalBayesClassifierPredictProb Method

Predicts the response for sample(s).

Namespace:  OpenCvSharp.ML
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public float PredictProb(
	InputArray inputs,
	OutputArray outputs,
	OutputArray outputProbs,
	int flags = 0
)

Parameters

inputs
Type: OpenCvSharpInputArray

[Missing <param name="inputs"/> documentation for "M:OpenCvSharp.ML.NormalBayesClassifier.PredictProb(OpenCvSharp.InputArray,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,System.Int32)"]

outputs
Type: OpenCvSharpOutputArray

[Missing <param name="outputs"/> documentation for "M:OpenCvSharp.ML.NormalBayesClassifier.PredictProb(OpenCvSharp.InputArray,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,System.Int32)"]

outputProbs
Type: OpenCvSharpOutputArray

[Missing <param name="outputProbs"/> documentation for "M:OpenCvSharp.ML.NormalBayesClassifier.PredictProb(OpenCvSharp.InputArray,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,System.Int32)"]

flags (Optional)
Type: SystemInt32

[Missing <param name="flags"/> documentation for "M:OpenCvSharp.ML.NormalBayesClassifier.PredictProb(OpenCvSharp.InputArray,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,System.Int32)"]

Return Value

Type: Single

[Missing <returns> documentation for "M:OpenCvSharp.ML.NormalBayesClassifier.PredictProb(OpenCvSharp.InputArray,OpenCvSharp.OutputArray,OpenCvSharp.OutputArray,System.Int32)"]

Remarks
The method estimates the most probable classes for input vectors. Input vectors (one or more) are stored as rows of the matrix inputs. In case of multiple input vectors, there should be one output vector outputs. The predicted class for a single input vector is returned by the method. The vector outputProbs contains the output probabilities corresponding to each element of result.
See Also