akmeans {lsbclust} | R Documentation |
K-Means Over One Way of An Three-Way Array
Description
Vectorize matrix slices over a specific way of an three-way array, and
conduct kmeans
on it.
Usage
akmeans(data, centers, margin = 3L, ndim = NULL, ...)
Arguments
data |
Three-way data array |
centers |
Passed to |
margin |
Integer indicating which way to cluster over |
ndim |
The rank of the low dimensional approximation of the matrix
slices to construct before clustering (using |
... |
Additional arguments passed to |
Examples
set.seed(1)
res <- akmeans(data = carray(dcars), margin = 3L, centers = 5, nstart = 10)
[Package lsbclust version 1.1 Index]