Click or drag to resize
Accord.NET (logo)

KMeansconverged Method

Determines if the algorithm has converged by comparing the centroids between two consecutive iterations.

Namespace:  Accord.MachineLearning
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
protected bool converged(
	double[][] centroids,
	double[][] newCentroids
)
Request Example View Source

Parameters

centroids
Type: SystemDouble
The previous centroids.
newCentroids
Type: SystemDouble
The new centroids.

Return Value

Type: Boolean
Returns if all centroids had a percentage change less than . Returns otherwise.
See Also