How to get the values of centroids for each cluster in k means?
1 次查看(过去 30 天)
显示 更早的评论
in the following code:
[idx, C]= kmeans(X,3);
is C the centroid of each cluster?thank you
0 个评论
回答(1 个)
Image Analyst
2017-4-9
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.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!