runKMedian: kMedian Centroids (runKMedian)

Description Usage Arguments Value

Description

Compute the centroids of a matrix of SAX data using kMedians.

Usage

1
2
runKMedian(seq, card, step, windowSize, clusterNum, centroidSeq, centroidCard,
  prevCentroid = FALSE)

Arguments

seq

A matrix of SAX data to be used for computation of centroids. Each row representing a new/seperate piece of data from the same system.

card

A matrix of cardinality values for the SAX data. This should have the same dimensions as the paraketer 'seq'.

step

The size of the distance between indices of sampling of the SAX data.

windowSize

The size of each sample from the SAX data. Also the number of elements in each centroid.

clusterNum

The number of centroids generated.

centroidSeq

A matrix of centroids only used for computation if 'prevCentroid' parameter is true.

centroidCard

A matrix of cardinalities of centroids only used for computation if 'prevCentroid' parameter is true.

prevCentroid

False: Do not use inputted centroids in computation. True: Use inputted centroids in computation.

Value

A list of lists of computed centroids and their cardinalities.


jcpetkovich/rsax documentation built on May 18, 2019, 10:25 p.m.