Kmeans Clustering

버전 (3.31 KB) 작성자: Mo Chen
Super fast and terse kmeans clustering.
다운로드 수: 39.4K
업데이트 날짜: 2017/3/13

라이선스 보기

This is a super duper fast implementation of the kmeans clustering algorithm. The code is fully vectorized and extremely succinct. It is much much faster than the Matlab builtin kmeans function. The kmeans++ seeding algorithm is also included (kseeds.m) for good initialization. Therefore, this package is not only for coolness, it is indeed practical.
Please try the demo script in the package.

Detail explanation of this algorithm can be found in following blog post:

This function is now a part of the PRML toolbox (

인용 양식

Mo Chen (2024). Kmeans Clustering (, MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2016b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보

tweak and require Matlab R2016b or later
finalize, I'm done with kmeans.

fix incompatibility issue with newer version of Matlab, due to the stupid API change of function unique()
update tags

Cleaning up

remove empty clusters according to suggestion

remove empty clusters according to suggestion

fix a bug for 1d data

update the files and description