You are here: Start » FIL.NET » Function Reference » Data Classification » Nearest Neighbors » FIL.KNN_Init

FIL.KNN_Init

Initializes the KNN classifier.

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void KNN_Init
(
	int inClassCount,
	int inDimensionCount,
	FilNet.KNNModel outKNNModel
)

Parameters

Name Type Range Default Description
inClassCountint<2, +INF>Number of classes.
inDimensionCountint<1, +INF>Length of feature vector.
outKNNModelFilNet.KNNModelInitialized KNN model.

Errors

List of possible exceptions:

Error type Description
DomainError At least two classes must be provided.
DomainError Feature vector should have at least one dimension.

See also