Click or drag to resize
Accord.NET (logo)

KModesT Constructor (Int32, FuncT, T, Double)

Note: This API is now obsolete.

Initializes a new instance of KModes algorithm

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

Parameters

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