Click or drag to resize
Accord.NET (logo)

KNearestNeighbors Constructor (Int32, IMetricDouble)

Creates a new KNearestNeighbors.

Namespace:  Accord.MachineLearning
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
public KNearestNeighbors(
	int k,
	IMetric<double[]> distance
)
Request Example View Source

Parameters

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