kmeanspp {motifcluster}R Documentation

kmeans++ clustering

Description

Use the kmeans++ algorithm to cluster points into k clusters, as implemented in the deprecated LICORS package, using the built-in function kmeans.

Usage

kmeanspp(data, k = 2, iter.max = 100, nstart = 10, ...)

Arguments

data

An N \times d matrix, where there are N samples in dimension d.

k

The number of clusters.

iter.max

The maximum number of iterations.

nstart

The number of restarts.

...

Additional arguments passed to kmeans.

Value

A list with 9 entries:

References

Arthur, D. and S. Vassilvitskii (2007). “k-means++: The advantages of careful seeding.” In H. Gabow (Ed.), Proceedings of the 18th Annual ACM-SIAM Symposium on Discrete Algorithms [SODA07], Philadelphia, pp. 1027-1035. Society for Industrial and Applied Mathematics.

See Also

kmeans

Examples

set.seed(1984)
n <- 100
X = matrix(rnorm(n), ncol = 2)
Y = matrix(runif(length(X)*2, -1, 1), ncol = ncol(X))
Z = rbind(X, Y)
cluster_Z = kmeanspp(Z, k = 5)

[Package motifcluster version 0.2.3 Index]