How to prioritize the cluster on the basis of number of data points in each cluster?
2 views (last 30 days)
Show older comments
satendra kumar
on 5 May 2018
Answered: Bernhard Suhm
on 18 May 2018
I want to assign a number to each cluster on the basis of data points in that.
2 Comments
Image Analyst
on 5 May 2018
It would be easier to help you if you had attached some data. All I can say is to use histogram() and assignment to reassign each cluster number based on its count.
Accepted Answer
Bernhard Suhm
on 18 May 2018
If X was your data, you could get the histogram with
h = histogram(X);
and then compare the centroids of your clusters to h.BinEdges, and the corresponding h.Values will provide you with the count of each cluster's bin.
0 Comments
More Answers (0)
See Also
Categories
Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!