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