Filter löschen
Filter löschen

Comparing k-medoids outputs

1 Ansicht (letzte 30 Tage)
Aviram Zilberman
Aviram Zilberman am 6 Aug. 2017
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.

Akzeptierte Antwort

the cyclist
the cyclist am 6 Aug. 2017
You could use the histcounts function:
s1_counts = histcounts(s1,[unique(s1); Inf])
  1 Kommentar
Aviram Zilberman
Aviram Zilberman am 6 Aug. 2017
Wow! Thanks for the quick answer !

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by