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?
Value
object of class FactoClass.tex with the following characteristics:
clustervector indicating the cluster of each element.
...
Details
With the 'Hartigan-Wong' algorithm, this function performs the K-means clustering
diminishing inertia intra classes.