Click or drag to resize
Accord.NET (logo)

KNearestNeighborsTInput Constructor (Int32, IDistanceTInput)

Creates a new KNearestNeighbors.

Namespace:  Accord.MachineLearning
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.6.0
Syntax
public KNearestNeighbors(
	int k,
	IDistance<TInput> distance
)
Request Example View Source

Parameters

k
Type: SystemInt32
distance
Type: Accord.Math.DistancesIDistanceTInput
See Also