Weighted K-means
Weighted K-means via Lloyd's algorithm
wkm( x, mu, data, weights = rep(1, NROW(x)), iter.max = 20, n.start = 5, init = "kmpp", ... )
x
: Data (or formula)mu
: Initial centers (or number centers chosen randomly among x)data
: optional data frmaeweights
: Optional weightsiter.max
: Max number of iterationsn.start
: Number of restartsinit
: method to create initial centres (default kmeans++)...
: Additional arguments to lower level functionsKlaus K. Holst