image thumbnail

kmeans_opt

version 1.0.0.1 (1.86 KB) by Sebastien De Landtsheer
tries k-means over different number of clusters

1.7K Downloads

Updated04 Apr 2019

View License

然而,k - means是一个不错的聚类算法it requires the specification of the number of clusters, and is stochastic.
This function takes a matrix as input, as well as the maximum number of clusters, the cutoff to determine the best model (the fraction of variance explained), and makes sure the results are stable by repeating a number of times specified by the user.
The above method is called the Elbow method.

Cite As

Sebastien De Landtsheer (2022).kmeans_opt(//www.tianjin-qmedu.com/matlabcentral/fileexchange/65823-kmeans_opt), MATLAB Central File Exchange. Retrieved.

MATLAB Release Compatibility
Created with R2017a
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!