Fix comment

This commit is contained in:
Alexey Milovidov 2021-09-12 09:10:31 +03:00
parent 6802010c9f
commit 14d34c4cba

View File

@ -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.