View source: R/movingAverages.R
ema | R Documentation |
The standard exponential moving average
ema(x, alpha = 0.5)
x |
the time-series of the signal |
alpha |
smoothing parameter, a value in the unit-interval |
The exponential moving average is defined by s_n = α x_n+(1-α)s_{n-1} for n>1, with some initial value.
vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.