powered by
The repr_pla computes PLA (Piecewise Linear Approximation) representation from a time series.
repr_pla
repr_pla(x, times = 10, return = "points")
the values based on the argument return (see above)
the numeric vector (time series)
the number of important points to extract (default 10)
what to return? Can be "points" (segments), places of points (segments) in a vector ("places") or "both" (data.frame).
Peter Laurinec, <[email protected]>
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")
Run the code above in your browser using DataLab