ewma | R Documentation |
A conventional exponential weighted moving average (EWMA) charting statistic evaluated by the data.
ewma(data, lambda, EWMA0)
data |
An one-dimensional random variable. |
lambda |
An EWMA smooth constant, which is a scalar in [0,1]. |
EWMA0 |
A starting point of EWMA charting statistic. |
A vector of EWMA charting statistics of data
at different t times.
x = rnorm(20,0,1)
ewma(x,0.05,0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.