wkm: Weighted K-means

Description Usage Arguments Author(s)

View source: R/wkm.R

Description

Weighted K-means via Lloyd's algorithm

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
wkm(
  x,
  mu,
  data,
  weights = rep(1, NROW(x)),
  iter.max = 20,
  n.start = 5,
  init = "kmpp",
  ...
)

Arguments

x

Data (or formula)

mu

Initial centers (or number centers chosen randomly among x)

data

optional data frmae

weights

Optional weights

iter.max

Max number of iterations

n.start

Number of restarts

init

method to create initial centres (default kmeans++)

...

Additional arguments to lower level functions

Author(s)

Klaus K. Holst


kkholst/lava documentation built on Sept. 6, 2021, 11:36 p.m.