K-means++ clustering for classification

K-means clustering algorithm implementation with k-means++ augmentation.
120 Downloads
Updated 2 Mar 2023

View License

K-means++ augmentation improves both the speed and the accuracy of the k-means clustering algorithm.
The Matlab code of the algorithm is provided together with a simple elbow searching function to get the minimum of the objective function when the slope of the curve becomes less than 2%.
As a stopping criterion for the clustering algorithm, a threshold on the relative difference of the values of the objective function compared to the best found has been considered.

Cite As

Claudio Fontana (2025). K-means++ clustering for classification (https://in.mathworks.com/matlabcentral/fileexchange/112485-k-means-clustering-for-classification), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022a
Compatible with R2022a to R2022b
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.1

Minor changes set the array data type for centroids.

1.0.0