필터 지우기
필터 지우기

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 CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by