1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wkm.R
\name{wkm}
\alias{wkm}
\title{Weighted K-means}
\usage{
wkm(
x,
mu,
data,
weights = rep(1, NROW(x)),
iter.max = 20,
n.start = 5,
init = "kmpp",
...
)
}
\arguments{
\item{x}{Data (or formula)}
\item{mu}{Initial centers (or number centers chosen randomly among x)}
\item{data}{optional data frmae}
\item{weights}{Optional weights}
\item{iter.max}{Max number of iterations}
\item{n.start}{Number of restarts}
\item{init}{method to create initial centres (default kmeans++)}
\item{...}{Additional arguments to lower level functions}
}
\description{
Weighted K-means via Lloyd's algorithm
}
\author{
Klaus K. Holst
}
|