http://www.emgu.com
Train the classifier using the specific data

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

Syntax

C#
public static bool CvNormalBayesClassifierTrain(
	IntPtr classifier,
	IntPtr trainData,
	IntPtr responses,
	IntPtr varIdx,
	IntPtr sampleIdx,
	bool update
)
Visual Basic
Public Shared Function CvNormalBayesClassifierTrain ( 
	classifier As IntPtr,
	trainData As IntPtr,
	responses As IntPtr,
	varIdx As IntPtr,
	sampleIdx As IntPtr,
	update As Boolean
) As Boolean
Visual C++
public:
static bool CvNormalBayesClassifierTrain(
	IntPtr classifier, 
	IntPtr trainData, 
	IntPtr responses, 
	IntPtr varIdx, 
	IntPtr sampleIdx, 
	bool update
)
F#
static member CvNormalBayesClassifierTrain : 
        classifier : IntPtr * 
        trainData : IntPtr * 
        responses : IntPtr * 
        varIdx : IntPtr * 
        sampleIdx : IntPtr * 
        update : bool -> bool 

Parameters

classifier
Type: System..::..IntPtr
The NormalBayesClassifier
trainData
Type: System..::..IntPtr
The training data. A 32-bit floating-point, single-channel matrix, one vector per row
responses
Type: System..::..IntPtr
A floating-point matrix of the corresponding output vectors, one vector per row.
varIdx
Type: System..::..IntPtr
Can be IntPtr.Zero if not needed. When specified, identifies variables (features) of interest. It is a Matrix>int< of nx1
sampleIdx
Type: System..::..IntPtr
Can be IntPtr.Zero if not needed. When specified, identifies samples of interest. It is a Matrix>int< of nx1
update
Type: System..::..Boolean
If true, the training data is used to update the classifier; Otherwise, the data in the classifier are cleared before training is performed

Return Value

Type: Boolean
The number of done iterations

See Also