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

2 ビュー (過去 30 日間)
Aaron Karlo Maranan
Aaron Karlo Maranan 2017 年 4 月 9 日
回答済み: Image Analyst 2017 年 4 月 9 日
in the following code:
[idx, C]= kmeans(X,3);
is C the centroid of each cluster?thank you

回答 (1 件)

Image Analyst
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.

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by