repr_pla {TSrepr} | R Documentation |
The repr_pla
computes PLA (Piecewise Linear Approximation) representation from a time series.
repr_pla(x, times = 10, return = "points")
x |
the numeric vector (time series) |
times |
the number of important points to extract (default 10) |
return |
what to return? Can be "points" (segments), places of points (segments) in a vector ("places") or "both" (data.frame). |
the values based on the argument return (see above)
Peter Laurinec, <tsreprpackage@gmail.com>
Zhu Y, Wu D, Li Sh (2007) A Piecewise Linear Representation Method of Time Series Based on Feature Points. Knowledge-Based Intelligent Information and Engineering Systems 4693:1066-1072
repr_pla(rnorm(100), times = 12, return = "both")