Code covered by the BSD License  

Highlights from
KNMCluster

3.66667

3.7 | 3 ratings Rate this file 5 Downloads (last 30 days) File Size: 2.29 KB File ID: #6291

KNMCluster

by Timothy Felty

 

15 Nov 2004 (Updated 01 Jan 2008)

Calculates means and associated clusters from input data.

| Watch this File

File Information
Description

Usage: [means,c]=KNMCluster(k,indata)

KNMCluster is an implementation of the K-means clustering algorithm. It takes inputs k and indata. k is the initial guess of the number of clusters.

indata is the aggregate data that you want to put into clusters.

The returned value "means" are the eturned means of the final clusters.

c is a structure with fields Clust1, Clust2, and so on for each of the k means.

Notes: This program makes use of Sara Silva's program shuffle found here on Mathworks. I would like to thank her for this nice little utility, it saved me some time which is always nice.

Tim Felty, fistandantilus1@hotmail.com

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
shuffle_orderby

MATLAB release MATLAB 7.2 (R2006a)
Other requirements I originally wrote this in Matlab 6.5, the new version was redone in Matlab R2006a. However I don't think I have made any calls that wouldn't work in Matlab 6.5
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
19 Nov 2004 balijepalli krishna murthy

good

29 Nov 2004 Sun Bae  
18 Apr 2008 Nora Spahiu

You did a good work, though you could have spent little more time on the multidimensionality of the the clusering.

09 Jun 2008 reesu satheesh

Good.

Please login to add a comment or rating.
Updates
01 Jan 2008

Refactored the code to handle more dimensions, also allows for more than 6 dimensions now.

Tag Activity for this File
Tag Applied By Date/Time
audio processing Timothy Felty 22 Oct 2008 07:35:49
mean Timothy Felty 22 Oct 2008 07:35:50
k Timothy Felty 22 Oct 2008 07:35:50
nearest Timothy Felty 22 Oct 2008 07:35:50
video processing Timothy Felty 22 Oct 2008 07:35:50
clustering Timothy Felty 22 Oct 2008 07:35:50
audio Timothy Felty 22 Oct 2008 07:35:50
signal Timothy Felty 22 Oct 2008 07:35:50

Contact us at files@mathworks.com