Emgu CV Library Documentation
CvNormalBayesClassifierTrain Method (classifier, trainData, responses, varIdx, sampleIdx, update)
NamespacesEmgu.CV.MLMlInvokeCvNormalBayesClassifierTrain(IntPtr, IntPtr, IntPtr, IntPtr, IntPtr, Boolean)

www.emgu.com/wiki
Train the classifier using the specific data
Declaration Syntax
C#Visual BasicVisual C++
public static bool CvNormalBayesClassifierTrain(
	IntPtr classifier,
	IntPtr trainData,
	IntPtr responses,
	IntPtr varIdx,
	IntPtr sampleIdx,
	bool update
)
Public Shared Function CvNormalBayesClassifierTrain ( _
	classifier As IntPtr, _
	trainData As IntPtr, _
	responses As IntPtr, _
	varIdx As IntPtr, _
	sampleIdx As IntPtr, _
	update As Boolean _
) As Boolean
public:
static bool CvNormalBayesClassifierTrain(
	IntPtr classifier, 
	IntPtr trainData, 
	IntPtr responses, 
	IntPtr varIdx, 
	IntPtr sampleIdx, 
	bool update
)
Parameters
classifier (IntPtr)
The NormalBayesClassifier
trainData (IntPtr)
The training data. A 32-bit floating-point, single-channel matrix, one vector per row
responses (IntPtr)
A floating-point matrix of the corresponding output vectors, one vector per row.
varIdx (IntPtr)
Can be IntPtr.Zero if not needed. When specified, identifies variables (features) of interest. It is a Matrix>int< of nx1
sampleIdx (IntPtr)
Can be IntPtr.Zero if not needed. When specified, identifies samples of interest. It is a Matrix>int< of nx1
update (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
The number of done iterations

Assembly: Emgu.CV.ML (Module: Emgu.CV.ML) Version: 1.0.0.0 (1.0.0.0)