You are here: Start » AVL.NET » Invoke.KNN_Classify

Invoke.KNN_Classify

Classify data using the KNN classifier.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void KNN_Classify
(
	Avl.KNNModel inKNNModel,
	List<float> inFeature,
	int inK,
	Avl.Metric inDistanceType,
	out int outClass
)

Parameters

Name Type Range Default Description
inKNNModelAvl.KNNModelTrained KNN model.
inFeatureSystem.Collections.Generic.List<float>Vector of features.
inKint<1, +INF>Numbers of neighbors.
inDistanceTypeAvl.MetricGeometry distance type used to calculate neighbors.
outClassint

See also