paa {jmotif} | R Documentation |
Computes a Piecewise Aggregate Approximation (PAA) for a time series.
paa(ts, paa_num)
ts |
a timeseries to compute the PAA for. |
paa_num |
the desired PAA size. |
Keogh, E., Chakrabarti, K., Pazzani, M., Mehrotra, S., Dimensionality reduction for fast similarity search in large time series databases. Knowledge and information Systems, 3(3), 263-286. (2001)
x = c(-1, -2, -1, 0, 2, 1, 1, 0) plot(x, type = "l", main = "8-points time series and it PAA transform into three points") points(x,pch = 16, lwd = 5) # segments abline(v = c(1, 1+7/3, 1+7/3 * 2, 8), lty = 3, lwd = 2)