KMeans: KMeans

Description Usage Arguments Details Value

Description

Calculates the K-Means algorithm.

Usage

1
KMeans(tss, k, tolerance = 1e-10, maxIterations = 100)

Arguments

tss

Expects an input array whose dimension zero is the length of the time series (all the same) and dimension one indicates the number of time series.

k

The number of means to be computed.

tolerance

The error tolerance to stop the computation of the centroids.

maxIterations

The maximum number of iterations allowed.

Details

[1] S. Lloyd. 1982. Least squares quantization in PCM. IEEE Transactions on Information Theory, 28, 2, Pages 129-137.

Value

List with the kMeans centroids as first element and kMeans labels as second element.


shapelets/khiva-r documentation built on June 10, 2019, 4:58 a.m.