turnpoints.Rd
Find turning points (peaks or pits) Determine the number and the position of extrema (turning points, either peaks or pits) in a regular time series.
turnpoints(x)
x | vector or a time series |
---|
An object of type 'abrTurnpoints' is returned, with:
The dataset to which the calculation is done
The number of observations
The value of the points in the series, after elimination of ex-aequos
The position of the points on the time scale in the series (including ex-aequos)
Location of exaequos (1), or not (0)
Total number of tunring points in the whole time series
Is the first turning point a peak (TRUE
), or not (FALSE
)
Logical vector. Location of the peaks in the time series without ex-aequos
Logical vector. Location of the pits in the time series without ex-aequos
Position of the turning points in the initial series (with ex-aequos)
Ibanez, F. (1982) Sur une nouvelle application de la theorie de l'information a la description des series chronologiques planctoniques. J. Exp. Mar. Biol. Ecol., 4:619-632
Grosjean, P. and Ibanez, F. (2014) pastecs: Package for Analysis of Space-Time Ecological Series. R package version 1.3-18. https://CRAN.R-project.org/package=pastecs
This is a stripped-down version taken from package pastecs, original authors are Frédéric Ibanez, Philippe Grosjean. The original code and the derived version are licensed under the GPL (>=2).