
This function assumes that the observations are evenly spaced and separated
by 1 time unit (so choose your tau
based on that).
ExpSmooth(obs, tau, extended = FALSE)
A numeric vector of observations (in order).
The time scale for the exponential smoothing (see Stroud 1999).
Logical. Has the series (obs
) already been extended via
via nandb:::MedReflectExtend()
? If not, ExpSmooth
will do this
prior to smoothing as an edge-correction technique. You will probably
never set this to TRUE
, but BestTau()
needs this feature.
The smoothed series, a numeric vector of the same length.
# NOT RUN {
ExpSmooth(1:10, 1)
# }
Run the code above in your browser using DataLab