Comparing k-medoids outputs

1 次查看(过去 30 天)
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])

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by