Code covered by the BSD License  

Highlights from
K-medoids

5.0

5.0 | 1 rating Rate this file 92 Downloads (last 30 days) File Size: 32.4 KB File ID: #28898
image thumbnail

K-medoids

by Mo Chen

 

30 Sep 2010 (Updated 15 Feb 2012)

K-medoids clustering algorithm

| Watch this File

File Information
Description

Efficient implementation of K-medoids clustering methods. This method is similar to K-means but more robust.
For more detail, please see
http://en.wikipedia.org/wiki/K-medoids

It is usually more robust than kmeans algorithm.

Input data are assumed column vectors.

try
load data;
label=kmedoids(x,3);
spread(x,label);

MATLAB release MATLAB 7.11 (R2010b)
Tags for This File  
Everyone's Tags
clustering(3), kmeans(2), kmedoids(4)
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
13 Dec 2012 Tu

Not working for my data as well.
My data was of the dimension 17-by-71.
wanted to find 4 or 6 clusters.
and spread did not work.

swaheed.iu@gmail.com

24 May 2012 Graeme

Undefined function 'randsample' for input arguments of type 'double'.

Error in kmedoids (line 8)
[~, label] = min(D(randsample(n,k),:));

09 Apr 2012 huang  
20 Mar 2012 Mo Chen

better post your error message

18 Mar 2012 Dinusha Rathnayaka

Dear Sir Pls help!!! My Matlab version is Matlab7.6.0..Is this the reason?
Pls reply when you free!!!

18 Mar 2012 Dinusha Rathnayaka

SIMPLY NOT working.
load data;
label=kmedoids(x,3);
spread(x,label);.

Updates
04 Feb 2012

significantly simplify the code

15 Feb 2012

correct description

Contact us