StatModelExtensionsPredict Method |
http://www.emgu.com
Predicts response(s) for the provided sample(s)
Namespace:
Emgu.CV.ML
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.0.1.3373 (4.0.1.3373)
Syntaxpublic static float Predict(
this IStatModel model,
IInputArray samples,
IOutputArray results = null,
int flags = 0
)
<ExtensionAttribute>
Public Shared Function Predict (
model As IStatModel,
samples As IInputArray,
Optional results As IOutputArray = Nothing,
Optional flags As Integer = 0
) As Single
public:
[ExtensionAttribute]
static float Predict(
IStatModel^ model,
IInputArray^ samples,
IOutputArray^ results = nullptr,
int flags = 0
)
[<ExtensionAttribute>]
static member Predict :
model : IStatModel *
samples : IInputArray *
?results : IOutputArray *
?flags : int
(* Defaults:
let _results = defaultArg results null
let _flags = defaultArg flags 0
*)
-> float32
Parameters
- model
- Type: Emgu.CV.MLIStatModel
The model. - samples
- 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:
SingleResponse 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