TSrepr (version 1.0.4)

repr_sax: SAX - Symbolic Aggregate Approximation

Description

The repr_sax creates SAX symbols for a univariate time series.

Usage

repr_sax(x, q = 2, a = 6, eps = 0.01)

Arguments

x

the numeric vector (time series)

q

the integer of the length of the "piece" in PAA

a

the integer of the alphabet size

eps

is the minimum threshold for variance in x and should be a numeric value. If x has a smaller variance than eps, it will represented as a word using the middle alphabet.

Value

the character vector of SAX representation

References

Lin J, Keogh E, Lonardi S, Chiu B (2003) A symbolic representation of time series, with implications for streaming algorithms. Proceedings of the 8th ACM SIGMOD Workshop on Research Issues in Data Mining and Knowledge Discovery - DMKD'03

See Also

repr_paa, repr_pla

Examples

Run this code
# NOT RUN {
x <- rnorm(48)
repr_sax(x, q = 4, a = 5)

# }

Run the code above in your browser using DataLab