How to prioritize the cluster on the basis of number of data points in each cluster?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
satendra kumar
el 5 de Mayo de 2018
Respondida: Bernhard Suhm
el 18 de Mayo de 2018
I want to assign a number to each cluster on the basis of data points in that.
2 comentarios
Image Analyst
el 5 de Mayo de 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.
Respuesta aceptada
Bernhard Suhm
el 18 de Mayo de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!