You are here: Start » FIL.NET » Invoke.KNN_Classify
Classify data using the KNN classifier.
Namespace: | Fil |
---|---|
Assembly: | FilNet.dll |
Syntax
C++
C#
public static void KNN_Classify ( Fil.KNNModel inKNNModel, List<float> inFeature, int inK, Fil.Metric inDistanceType, out int outClass )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inKNNModel | Fil.KNNModel | Trained KNN model. | ||
![]() | inFeature | System.Collections.Generic.List<float> | Vector of features. | ||
![]() | inK | int | <1, +INF> | Numbers of neighbors. | |
![]() | inDistanceType | Fil.Metric | Geometry distance type used to calculate neighbors. | ||
![]() | outClass | int |