fm.kmeans | R Documentation |
Perform k-means clustering on a data matrix.
fm.kmeans(data, centers, max.iters = 10, debug = FALSE, use.blas = FALSE)
data |
the input data matrix where each row is a data point. |
centers |
either the number of clusters, say k, or a set of initial (distinct) cluster centers. If a number, a random set of (distinct) rows in ‘x’ is chosen as the initial centers. |
max.iters |
the maximal number of iterations. |
debug |
This indicates whether to print debug info. |
use.blas |
a logical value indicating whether to use BLAS to compute Euclidean distance. |
a vector that contains cluster Ids for each data point.
Da Zheng <dzheng5@jhu.edu>