Learn R Programming

TSrepr (version 1.1.1)

repr_paa: PAA - Piecewise Aggregate Approximation

Description

The repr_paa computes PAA representation from a vector.

Usage

repr_paa(x, q, func)

Value

the numeric vector

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

Author

Peter Laurinec, <[email protected]>

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
repr_paa(rnorm(11), 2, meanC)

Run the code above in your browser using DataLab