TSrepr (version 1.0.4)

repr_paa: PAA - Piecewise Aggregate Approximation

Description

The repr_paa computes PAA representation from a vector.

Usage

repr_paa(x, q, func)

Arguments

x

the numeric vector (time series)

q

the integer of the length of the "piece"

func

the aggregation function. Can be meanC, medianC, sumC, minC or maxC or similar aggregation function

Value

the numeric vector

Details

PAA with possibility to use arbitrary aggregation function. The original method uses average as aggregation function.

References

Keogh E, Chakrabarti K, Pazzani M, Mehrotra Sh (2001) Dimensionality Reduction for Fast Similarity Search in Large Time Series Databases. Knowledge and Information Systems 3(3):263-286

See Also

repr_dwt, repr_dft, repr_dct, repr_sma

Examples

Run this code
# NOT RUN {
repr_paa(rnorm(11), 2, meanC)

# }

Run the code above in your browser using DataCamp Workspace