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
inKNNModelAvlNet.KNNModelTrained KNN model.
inFeatureSystem.Collections.Generic.IList<float>Vector of features.
inKint<1, +INF>Numbers of neighbors.
inDistanceTypeAvlNet.MetricGeometry distance type used to calculate neighbors.
outClassint

See also