akmeans: K-Means Over One Way of An Three-Way Array

Description Usage Arguments Examples

Description

Vectorize matrix slices over a specific way of an three-way array, and conduct kmeans on it.

Usage

1
akmeans(data, centers, margin = 3L, ndim = NULL, ...)

Arguments

data

Three-way data array

centers

Passed to kmeans

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 svd)

...

Additional arguments passed to kmeans

Examples

1
2
set.seed(1)
res <- akmeans(data = carray(dcars), margin = 3L, centers = 5, nstart = 10)

lsbclust documentation built on May 1, 2019, 10:27 p.m.