Borrar filtros
Borrar filtros

How to get the values of centroids for each cluster in k means?

1 visualización (últimos 30 días)
Aaron Karlo Maranan
Aaron Karlo Maranan el 9 de Abr. de 2017
Respondida: Image Analyst el 9 de Abr. de 2017
in the following code:
[idx, C]= kmeans(X,3);
is C the centroid of each cluster?thank you

Respuestas (1)

Image Analyst
Image Analyst el 9 de Abr. de 2017
I don't know that the centroid is necessarily at a data point. Did kmeans guarantee that it is? If not, you might have to interpolate from the nearest neighbors, if that is even appropriate.

Community Treasure Hunt

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

Start Hunting!

Translated by