Skip to main content
Skip to main content

exponentialMovingAverage

exponentialMovingAverage

Calculates the exponential moving average of values for the determined time.

Syntax

Each value corresponds to the determinate timeunit. The half-life x is the time lag at which the exponential weights decay by one-half. The function returns a weighted average: the older the time point, the less weight the corresponding value is considered to be.

Arguments

Parameters

Returned values

Type: Float64.

Examples

Input table:

Query:

Result:

Query:

Result: