http://www.emgu.com
Train the EM model using the specific training data

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

Syntax

C#
public bool Train(
	Matrix<float> samples,
	Matrix<float> sampleIdx,
	EMParams parameters,
	Matrix<int> labels
)
Visual Basic
Public Function Train ( _
	samples As Matrix(Of Single), _
	sampleIdx As Matrix(Of Single), _
	parameters As EMParams, _
	labels As Matrix(Of Integer) _
) As Boolean
Visual C++
public:
bool Train(
	Matrix<float>^ samples, 
	Matrix<float>^ sampleIdx, 
	EMParams^ parameters, 
	Matrix<int>^ labels
)

Parameters

samples
Type: Emgu.CV..::..Matrix<(Of <(<'Single>)>)>
The training data. A 32-bit floating-point, single-channel matrix, one vector per row
sampleIdx
Type: Emgu.CV..::..Matrix<(Of <(<'Single>)>)>
Can be null if not needed. When specified, identifies samples of interest. It is a Matrix>int< of nx1
parameters
Type: Emgu.CV.ML..::..EMParams
The parameters for EM
labels
Type: Emgu.CV..::..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.EMLegacy.Train(Emgu.CV.Matrix{System.Single},Emgu.CV.Matrix{System.Single},Emgu.CV.ML.EMParams,Emgu.CV.Matrix{System.Int32})"]

See Also