How to prioritize the cluster on the basis of number of data points in each cluster?
2 次查看(过去 30 天)
显示 更早的评论
I want to assign a number to each cluster on the basis of data points in that.
2 个评论
Image Analyst
2018-5-5
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.
采纳的回答
Bernhard Suhm
2018-5-18
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!