mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
Fix comment
This commit is contained in:
parent
6802010c9f
commit
14d34c4cba
@ -13,7 +13,7 @@ namespace DB
|
||||
* For example, the last value is taken with weight 1/2, the value one second ago with weight 1/4, two seconds ago - 1/8, etc.
|
||||
* It can be understood as an average over sliding window, but with different kernel.
|
||||
*
|
||||
* As an advantage, it is easy to update. Instead of collecting values and calculating a series of x1/2 + x2/4 + x3/8...
|
||||
* As an advantage, it is easy to update. Instead of collecting values and calculating a series of x1 / 2 + x2 / 4 + x3 / 8...
|
||||
* just calculate x_old * weight + x_new * (1 - weight), where weight is and exponent of time passed.
|
||||
*
|
||||
* It is often used for resource usage metrics. For example, "load average" in Linux is exponentially smoothed moving average.
|
||||
|
Loading…
Reference in New Issue
Block a user