Use distance in K-means convergence check
emilklindt opened this issue · 0 comments
emilklindt commented
Change convergence check for K-means to use distance instead of direct equality, allowing for minor changes in centroid from iteration to iteration, providing better performance without being critical to result quality.
laravel-marker-clusterer/src/Clusterers/KMeansClusterer.php
Lines 195 to 201 in 0a558d0