Description Usage Arguments Details Value
Calculates the K-Means algorithm.
1 | KMeans(tss, k, tolerance = 1e-10, maxIterations = 100)
|
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. |
[1] S. Lloyd. 1982. Least squares quantization in PCM. IEEE Transactions on Information Theory, 28, 2, Pages 129-137.
List with the kMeans centroids as first element and kMeans labels as second element.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.