An integer that specifies the number of historical documents that have a significant mathematical weight in the exponential moving average calculation, with the most recent documents contributing the most weight.
You must specify either N or alpha. You cannot specify both.
Optional
alpha?: neverA double that specifies the exponential decay value to use in the exponential moving average calculation. A higher alpha value assigns a lower mathematical significance to previous results from the calculation.
You must specify either N or alpha. You cannot specify both.
Specifies the expression to evaluate. Non-numeric expressions are ignored.
Optional
N?: neverAn integer that specifies the number of historical documents that have a significant mathematical weight in the exponential moving average calculation, with the most recent documents contributing the most weight.
You must specify either N or alpha. You cannot specify both.
A double that specifies the exponential decay value to use in the exponential moving average calculation. A higher alpha value assigns a lower mathematical significance to previous results from the calculation.
You must specify either N or alpha. You cannot specify both.
Specifies the expression to evaluate. Non-numeric expressions are ignored.
Generated using TypeDoc
Returns the exponential moving average of numeric expressions applied to documents in a partition defined in the $setWindowFields stage.