Gap statistics
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
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.