turns
returns an object of class timeSeries
.
turnsStats
returns an object of class turnpoints
with the following entries:
data
- The dataset to which the calculation is done.
n
- The number of observations.
points
- The value of the points in the series, after elimination
of ex-aequos.
pos
- The position of the points on the time scale in the series
(including ex-aequos).
exaequos
- Location of exaequos (1), or not (0).
nturns
- Total number of tunring points in the whole time series.
firstispeak
- Is the first turning point a peak (TRUE), or
not (FALSE).
peaks
- Logical vector. Location of the peaks in the time series
without ex-aequos.
pits
- Logical vector. Location of the pits in the time series
without ex-aequos.
tppos
- Position of the turning points in the initial series (with
ex-aequos).
proba
- Probability to find a turning point at this location.
info
- Quantity of information associated with this point.