Click or drag to resize
StatModelExtensionsPredict Method
Predicts response(s) for the provided sample(s)

Namespace: Emgu.CV.ML
Assembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: (
public static float Predict(
	this IStatModel model,
	IInputArray samples,
	IOutputArray results = null,
	int flags = 0


Type: Emgu.CV.MLIStatModel
The model.
Type: Emgu.CVIInputArray
The input samples, floating-point matrix.
results (Optional)
Type: Emgu.CVIOutputArray
The optional output matrix of results.
flags (Optional)
Type: SystemInt32
The optional flags, model-dependent.

Return Value

Type: Single
Response for the provided sample

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IStatModel. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also