Update docs/en/sql-reference/aggregate-functions/reference/exponentialmovingaverage.md

Co-authored-by: gyuton <40863448+gyuton@users.noreply.github.com>
This commit is contained in:
Nikolai Kochetov 2021-11-16 12:59:50 +03:00 committed by GitHub
parent 8dfb221a32
commit 2d5c399cbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@ exponentialMovingAverage(x)(value, timestamp)
Each `value` corresponds to the determinate `timestamp`. The half-decay period is the time interval `x` during which the previous values are taken into account. The function returns a weighted average: the older the time point, the less weight the corresponding value is considered to be.
**Arguments**
- `value` — Value. [Integer](../../../sql-reference/data-types/int-uint.md), [Float](../../../sql-reference/data-types/float.md), or [Decimal](../../../sql-reference/data-types/decimal.md).
- `timestamp` - timestamp must be [Integer](../../../sql-reference/data-types/int-uint.md).