sax_distance_matrix: Generates a SAX MinDist distance matrix (i.e. the "lookup...

Description Usage Arguments Value References Examples

View source: R/jmotif.R

Description

Generates a SAX MinDist distance matrix (i.e. the "lookup table") for a given alphabet size.

Usage

1

Arguments

a_size

the desired alphabet size (a value between 2 and 20, inclusive)

Value

Returns a distance matrix (for SAX minDist) for a specified alphabet size

References

Lonardi, S., Lin, J., Keogh, E., Patel, P., Finding motifs in time series. In Proc. of the 2nd Workshop on Temporal Data Mining (pp. 53-68).

Examples

1

Example output

Loading required package: Rcpp
          [,1]     [,2]      [,3]     [,4]      [,5]
[1,] 0.0000000 0.000000 0.3460665 1.198956 2.8333052
[2,] 0.0000000 0.000000 0.0000000 0.256739 1.1989557
[3,] 0.3460665 0.000000 0.0000000 0.000000 0.3460665
[4,] 1.1989557 0.256739 0.0000000 0.000000 0.0000000
[5,] 2.8333052 1.198956 0.3460665 0.000000 0.0000000

jmotif documentation built on March 26, 2020, 7:23 p.m.