R: Weighted K-means

km {lava} | R Documentation

## Weighted K-means

### Description

Weighted K-means via Lloyd's algorithm

### Usage

    km(x, mu, data, weights = rep(1, NROW(x)), iter.max = 20, n.start = 5,
      ...)

### 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
`...` | Additional arguments to lower level functions

### Author(s)

Klaus K. Holst

[Package lava version 1.6.1 Index]