Emgu CV Library Documentation
Train Method (samples, sampleIdx, parameters, labels)
NamespacesEmgu.CV.MLEMTrain(Matrix<(Of <(Single>)>), Matrix<(Of <(Single>)>), EMParams, Matrix<(Of <(Int32>)>))

www.emgu.com/wiki
Train the EM model using the specific training data
Declaration Syntax
C#Visual BasicVisual C++
public bool Train(
	Matrix<float> samples,
	Matrix<float> sampleIdx,
	EMParams parameters,
	Matrix<int> labels
)
Public Function Train ( _
	samples As Matrix(Of Single), _
	sampleIdx As Matrix(Of Single), _
	parameters As EMParams, _
	labels As Matrix(Of Integer) _
) As Boolean
public:
bool Train(
	Matrix<float>^ samples, 
	Matrix<float>^ sampleIdx, 
	EMParams^ parameters, 
	Matrix<int>^ labels
)
Parameters
samples (Matrix<(Of <(Single>)>))
The training data. A 32-bit floating-point, single-channel matrix, one vector per row
sampleIdx (Matrix<(Of <(Single>)>))
Can be null if not needed. When specified, identifies samples of interest. It is a Matrix>int< of nx1
parameters (EMParams)
The parameters for EM
labels (Matrix<(Of <(Int32>)>))
Can be null if not needed. Optionally computed output "class label" for each sample
Return Value

[Missing <returns> documentation for M:Emgu.CV.ML.EM.Train(Emgu.CV.Matrix{System.Single},Emgu.CV.Matrix{System.Single},Emgu.CV.ML.EMParams,Emgu.CV.Matrix{System.Int32})]

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