Skip to content
Prev 129657 / 398500 Next

Help with K-means Clustering

Hi,
 if you use the function kmean in the package stats, for example

clust <- kmeans(data, k, iter.max = 10)

where k is the number of desired cluster, kmeans will choose the first
k centers randomly. Because of this random initialization, after
iter.max iteration the solution may converge to different final
clusters (and therefore different centers and validity measures).

see   ?kmeans  and look at the parameter 'centers'.

Roberto
http://roberto.perdisci.googlepages.com
On Nov 14, 2007 6:07 PM, Alejandro Rodr?guez <rodrigueza at schwabe.com.mx> wrote: