ema: Exponentially moving average

View source: R/gbm-fitting.R

emaR Documentation

Exponentially moving average

Description

Exponentially weighted sample average. Past data has exponentially decaying weights.

Usage

ema(x, lambda = 0.94, h = 1/252)

Arguments

x

data-set

lambda

weight parameter (near 0 corresponds to sample mean)

h

timescale

Value

numeric


shill1729/findistr documentation built on May 20, 2024, 9:43 a.m.