|
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
)
Protected Function converged (
centroids As Double()(),
newCentroids As Double()()
) As Boolean
Request Example
View SourceParameters
- centroids
- Type: SystemDouble
The previous centroids. - newCentroids
- Type: SystemDouble
The new centroids.
Return Value
Type:
BooleanReturns
if all centroids had a percentage change
less than . Returns
otherwise.
See Also