You are here:
Start »
AVL.NET »
AVL.KNN_Classify(AvlNet.KNNModel, float[], int, AvlNet.Metric, int)
AVL.KNN_Classify(AvlNet.KNNModel, float[], int, AvlNet.Metric, int)
| Namespace: | AvlNet |
| Assembly: | AVL.NET.dll |
Syntax
public static void KNN_Classify(
AvlNet.KNNModel inKNNModel,
float[] inFeature,
int inK,
AvlNet.Metric inDistanceType,
out int outClass
)
Parameters
- inKNNModel
- Type: AvlNet.KNNModel
- inFeature
- Type: System.Single
- inK
- Type: System.Int32
- inDistanceType
- Type: AvlNet.Metric
- outClass
- Type: System.Int32
Errors
| Error type |
Description |
| DomainError |
Using not trained classifier in KNN_Classify. |
| DomainError |
The inFeature has different dimensions count than KNNModel in KNN_Classify. |
| DomainError |
The inK is bigger than data samples count in KNN_Classify. |
See also