calculate centroid after kmeans
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
Is it possible to retrospecively compute the centroids from the membership indices and the data after running kmeans?
Thanks!
Hans
0 件のコメント
回答 (1 件)
Image Analyst
2020 年 3 月 1 日
Why not simply use the centroid locations that kmeans returns to you? Did you know that kmean() returns those if you ask for (accept) two return values
[indexes, centroids] = kmeans(data, k);
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!