How to prioritize the cluster on the basis of number of data points in each cluster?

2 vues (au cours des 30 derniers jours)
I want to assign a number to each cluster on the basis of data points in that.
  2 commentaires
Image Analyst
Image Analyst le 5 Mai 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.
satendra kumar
satendra kumar le 6 Mai 2018
please provide me code of this operation.

Connectez-vous pour commenter.

Réponse acceptée

Bernhard Suhm
Bernhard Suhm le 18 Mai 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.

Plus de réponses (0)

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by