Description: K-means is a clustering algorithm
In the beginning we determine number of cluster K and we assume the centroid or center of these clusters. We can take any random objects as the initial centroids or the first K objects in sequence can also serve as the initial centroids.
There are two function for that the kMeanCluster and distMatrix
- [cluster] - clustering---uses a kmeans method
- [Image-Kmeans] - use the k-means algorithm to cluster pix
- [dataset] - matlab code for k-means algorithm is 2-D
File list (Check if you may need any files):
kMeansCluster.m
DistMatrix.m