Comparing k-medoids outputs

2 ビュー (過去 30 日間)
Aviram Zilberman
Aviram Zilberman 2017 年 8 月 6 日
コメント済み: Aviram Zilberman 2017 年 8 月 6 日
I have two different outputs of the kmedoids matlab function, say s1 and s2. How do I find the number of items that were assigned to different clusters in s1 and s2 ? note that s1 and s2 may be equal but only the indexing of the clusters is different.

採用された回答

the cyclist
the cyclist 2017 年 8 月 6 日
You could use the histcounts function:
s1_counts = histcounts(s1,[unique(s1); Inf])
  1 件のコメント
Aviram Zilberman
Aviram Zilberman 2017 年 8 月 6 日
Wow! Thanks for the quick answer !

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by