Comparing k-medoids outputs

2 vues (au cours des 30 derniers jours)
Aviram Zilberman
Aviram Zilberman le 6 Août 2017
Commenté : Aviram Zilberman le 6 Août 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.

Réponse acceptée

the cyclist
the cyclist le 6 Août 2017
You could use the histcounts function:
s1_counts = histcounts(s1,[unique(s1); Inf])
  1 commentaire
Aviram Zilberman
Aviram Zilberman le 6 Août 2017
Wow! Thanks for the quick answer !

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by