object of class FactoClass.tex with the following characteristics:
cluster
vector indicating the cluster of each element.
...
Arguments
x
A numeric vector, matrix or data frame.
centers
Either the number of clusters or a set of initial (distinct) cluster centres.
If a number, a random set of (distinct) rows in x is chosen as the initial centres.
weight
weight of the elements of x. by default the same.
iter.max
The maximum number of iterations allowed.
nstart
If centers is a number, how many random sets should be chosen?
With the 'Hartigan-Wong' algorithm, this function performs the K-means clustering
diminishing inertia intra classes. In this version the Fortran code kmnsW.f was changed by C++ code kmeanw.cc programed by Camilo Jose Torres, modifing C code programed by Burkardt.
References
Hartigan, J. A. and Wong, M. A. (1979).
A K-means clustering algorithm.
Applied Statistics28, 100--108.