Fast K-means clustering

Fast mex K-means clustering algorithm with possibility of K-mean++ initialization.
Updated 17 May 2021

View License

Fast mex K-means clustering algorithm with possibility of K-mean++ initialization
(mex-interface modified from the original yael package
- Accept single/double precision input
- Support of BLAS/OpenMP for multi-core computation
Please run mexme_kmeans.m to compile mex-files (be sure that mex -setup have been done at least one)
Run demo "test_yael_kmeans.m"

Cite As

Sebastien PARIS (2024). Fast K-means clustering (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers

Inspired: Sparsified 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

Fix mwIndex pointers for modern Matlab. Currently works flawless when compiled with Intel compiler and linked with MKL.

- Fix compilation issue in mexme_yael_kmeans
- Include both mexw32 & mexw64 files in two separate files (unzip them in local dir in case of problem)

- Fix a bug in ndellipse introduced in the last update

-Correct a bug in mexme_yael_kmeans.m for Linux/Mac Os

-Correct a bug in randperm

- Minor changes
- Add spiral clustering example in the test file

- Add online help, minor changes