aboutsummaryrefslogtreecommitdiffstats
path: root/R/ema.R
diff options
context:
space:
mode:
Diffstat (limited to 'R/ema.R')
-rw-r--r--R/ema.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/ema.R b/R/ema.R
index b0ce4932..3424c7c0 100644
--- a/R/ema.R
+++ b/R/ema.R
@@ -1,3 +1,3 @@
- ema <- function(x, beta = 0.1, init=x[1]){
+ema <- function(x, beta = 0.1, init=x[1]){
filter(beta*x, filter = 1-beta, method = "recursive", init = init)
}