Center of mass or clusters
6 ビュー (過去 30 日間)
古いコメントを表示
Hi there!
If I have an NxM matrix and a number of clusters, how do I return a centroids point vector representing the averages (centers of mass) of the clusters?
0 件のコメント
回答 (1 件)
Image Analyst
2020 年 4 月 11 日
It's returned by the kmeans() function as the second output argument:
[indexes, clusterCentroids] = kmeans(data, numberOfClusters);
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!