Fast K-means clustering

Fast mex K-means clustering algorithm with possibility of K-mean++ initialization.

Download
Download

You are now following this Submission

Cite As

Sebastien PARIS (2026). Fast K-means clustering (https://se.mathworks.com/matlabcentral/fileexchange/33541-fast-k-means-clustering), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Sparsified K-Means, Ziheng_GMM.zip

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.7.0

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

Download
1.6.0

- 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)

Download
1.5.0

- Fix a bug in ndellipse introduced in the last update

Download
1.4.0

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

Download
1.3.0

-Correct a bug in randperm

Download
1.2.0

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

Download
1.1.0

- Add online help, minor changes

Download
1.0.0

Download