kmeans_varpar(X,k)

Implementation of K-means with Variance Partitioning initialization
209 Downloads
Updated 9 Aug 2017

View License

Implementation of K-means with Variance Partitioning initialization. Variance Partitioning initialization is a deterministic way of initializing the data centroids, thus producing results that are repeatable and reproducible, without having to resort to tricks like seeding the pseudorandom number generator.

Cite As

Stefan Philippo Pszczolkowski Parraguez (2024). kmeans_varpar(X,k) (https://www.mathworks.com/matlabcentral/fileexchange/57229-kmeans_varpar-x-k), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Cluster Analysis and Anomaly Detection in Help Center and MATLAB Answers
Acknowledgements

Inspired by: k-means++

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.0

Removed loop that made sure that the number of returned centrers is equal to the specified k. This is arguably not necessary and since variance partitioning provides a deterministic result, there is potential for getting trapped in an infinite loop.
Removed loop that made sure that the number of returned centrers is equal to the specified k. This is arguably not necessary and since variance partitioning provides a deterministic result, there is potential for getting trapped in an infinite loop.

1.0.0.0