Given the NormalBayesClassifier, predit the probability of the samples

Namespace: Emgu.CV.ML
Assembly: Emgu.CV.ML (in Emgu.CV.ML.dll) Version: 2.2.1.1150 (2.2.1.1150)

Syntax

         
 C#  Visual Basic  Visual C++ 
public float Predict(
	Matrix<float> samples,
	Matrix<int> results
)
Public Function Predict ( _
	samples As Matrix(Of Single), _
	results As Matrix(Of Integer) _
) As Single
public:
float Predict(
	Matrix<float>^ samples, 
	Matrix<int>^ results
)

Parameters

samples
Matrix<(Of <(<'Single>)>)>
The input samples
results
Matrix<(Of <(<'Int32>)>)>
The prediction results, should have the same # of rows as the samples

Return Value

In case of classification the method returns the class label, in case of regression - the output function value

See Also