Click or drag to resize
Accord.NET (logo)

KModesT Constructor (Int32, IDistanceT)

Initializes a new instance of KModes algorithm

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

Parameters

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