Gap statistics

Algorithm for cluster validity index, R. Tibshirani et al. 2001
2K Downloads
Updated 11 Mar 2013

View License

Gap statistic is a method used to estimate the most possible number of clusters in a partition clustering, e.g. k-means clustering (but consider more robust clustering). This measurement was originated by Trevor Hastie, Robert Tibshirani, and Guenther Walther, all from Standford University.

I posted here since I haven't found any Gapstatistics implementation to validate my code, therefore feel free to report bugs and improvements.

Cite As

Alessandro Crimi (2024). Gap statistics (https://www.mathworks.com/matlabcentral/fileexchange/37905-gap-statistics), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.4.0.0

bug fixed

1.2.0.0

better code and communication of some validation

1.1.0.0

bug fixed

1.0.0.0