Can I use kmeans matlab function to perform k-medoids algorithm ?

Hi I am kind of new to the clustering algorithm so apologize for the bad questions first. I notice that matlab has kmeans built-in function and it can be specified to find component-wise centroid instead of mean by using kmeasn(X,clusterNum,"distance" "city"). I am wondering how this differs from k-medoids algorithm. Does this mean it performs a k-medoids algorithm ? Or it is still a kmeans algorithm ? Is there some way to configure the kmeans function into k-medoids or there is another function for k-medioids ?
Thank you very much,

 채택된 답변

the cyclist
the cyclist 2011년 9월 3일

0 개 추천

No, but there is a k-medoids function in the File Exchange:

댓글 수: 4

Thank you very much for your help and I will try the k-medoids function you showed. Then, may I also ask what does it mean when we use kmeans function with "Distance" "city" setting ? What is a component-wise kmeans comcpared with k-medoids ? They seem really similar ?
I am not an expert in this, but my understanding is that a k-medoids are required to be members of the original set, whereas the k-means are not. The "distance" parameter just specifies which mathematical definition of distance will be used.
[Also, please "accept" this solution if you found it helpful, for the sake of future seekers of knowledge.]
Thank you very much,
I am trying to calculate different clustering validation indices such as daviesbouldin, gap, silhouette and CalinskiHarabasz for K-means, K-medoids, and heirarichal clustering.i am trying to calculate daviesbouldin and gap index value for k-mediods but i didnt find any solution. if anyone can help.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Cluster Analysis and Anomaly Detection에 대해 자세히 알아보기

질문:

2011년 9월 2일

댓글:

2020년 12월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by