repr_pla: PLA representation

Description Usage Arguments Value Author(s) References Examples

View source: R/PLA.R

Description

The repr_pla computes PLA (Piecewise Linear Approximation) representation from a time series.

Usage

1
repr_pla(x, times = 10, return = "points")

Arguments

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).

Value

the values based on the argument return (see above)

Author(s)

Peter Laurinec, <tsreprpackage@gmail.com>

References

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

Examples

1
repr_pla(rnorm(100), times = 12, return = "both")

TSrepr documentation built on July 13, 2020, 9:07 a.m.