C# Class OpenCvSharp.ML.NormalBayesClassifier

Bayes classifier for normally distributed data
Inheritance: StatModel
ファイルを表示 Open project: shimat/opencvsharp

Public Methods

Method Description
Create ( ) : NormalBayesClassifier

Creates empty model. Use StatModel::train to train the model after creation.

PredictProb ( InputArray inputs, OutputArray outputs, OutputArray outputProbs, int flags ) : float

Predicts the response for sample(s).

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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

NormalBayesClassifier ( IntPtr p ) : System

Creates instance by raw pointer cv::ml::NormalBayesClassifier*

Method Details

Create() public static method

Creates empty model. Use StatModel::train to train the model after creation.
public static Create ( ) : NormalBayesClassifier
return NormalBayesClassifier

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool /// If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. /// If false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed. ///
return void

NormalBayesClassifier() protected method

Creates instance by raw pointer cv::ml::NormalBayesClassifier*
protected NormalBayesClassifier ( IntPtr p ) : System
p System.IntPtr
return System

PredictProb() public method

Predicts the response for sample(s).
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.
public PredictProb ( InputArray inputs, OutputArray outputs, OutputArray outputProbs, int flags ) : float
inputs InputArray
outputs OutputArray
outputProbs OutputArray
flags int
return float