Click or drag to resize
Accord.NET (logo)

KMeans Constructor (Int32, FuncDouble, Double, Double)

Note: This API is now obsolete.

Initializes a new instance of KMeans algorithm

Namespace:  Accord.MachineLearning
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
[ObsoleteAttribute("Please specify the distance function using classes instead of lambda functions.")]
public KMeans(
	int k,
	Func<double[], double[], double> distance
Request Example View Source


Type: SystemInt32
The number of clusters to divide input data.
Type: SystemFuncDouble, Double, Double
The distance function to use. Default is to use the SquareEuclidean(Double, Double) distance.
See Also