Kmeans Clustering Using the Distance Matrix

8 ビュー (過去 30 日間)
Shahrukh Kasi
Shahrukh Kasi 2018 年 1 月 5 日
コメント済み: Image Analyst 2019 年 3 月 24 日
In Matlab predefine function of K-means, we can do the clustering by giving the location of data points and number of clusters. Can we use the same K-means function to do clustering just on the basis of distance matrix and number of clusters?

回答 (2 件)

Image Analyst
Image Analyst 2018 年 1 月 5 日
Yes. The feature(s) upon which you do cluster analysis can be distance or whatever you want.
  4 件のコメント
MA-Winlab
MA-Winlab 2019 年 3 月 24 日
I have a set of pulses I am extracting from accelrometer and calculating the distance between each two pulses (pairwise). This way I am contructing a distance matrix and since I am doing this pairwise, then the diagonal will be 0s.
Image Analyst
Image Analyst 2019 年 3 月 24 日
What does that have to do with kmeans?

サインインしてコメントする。


Asghar Moeini
Asghar Moeini 2018 年 4 月 29 日
No you cannot, as you need data for calculating centroids in each iterations, but you can use kmedioids clustering method which use medians instead of centriods. This algorithm is doownloadable in the following link: https://au.mathworks.com/matlabcentral/fileexchange/28860-kmedioids?focused=5165469&tab=function

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by