mirror of
https://github.com/rclone/rclone.git
synced 2026-01-07 11:03:15 +00:00
vendor: update all dependencies
This commit is contained in:
12
vendor/github.com/VividCortex/ewma/README.md
generated
vendored
12
vendor/github.com/VividCortex/ewma/README.md
generated
vendored
@@ -1,10 +1,8 @@
|
||||
# EWMA
|
||||
# EWMA [](https://godoc.org/github.com/VividCortex/ewma) 
|
||||
|
||||
This repo provides Exponentially Weighted Moving Average algorithms, or EWMAs for short, [based on our
|
||||
Quantifying Abnormal Behavior talk](https://vividcortex.com/blog/2013/07/23/a-fast-go-library-for-exponential-moving-averages/).
|
||||
|
||||

|
||||
|
||||
### Exponentially Weighted Moving Average
|
||||
|
||||
An exponentially weighted moving average is a way to continuously compute a type of
|
||||
@@ -33,21 +31,21 @@ and then begin the incremental updating of the average. Each method has pros and
|
||||
It may help to look at it pictorially. Suppose the series has five numbers, and we choose
|
||||
alpha to be 0.50 for simplicity. Here's the series, with numbers in the neighborhood of 300.
|
||||
|
||||

|
||||

|
||||
|
||||
Now let's take the moving average of those numbers. First we set the average to the value
|
||||
of the first number.
|
||||
|
||||

|
||||

|
||||
|
||||
Next we multiply the next number by alpha, multiply the current value by 1-alpha, and add
|
||||
them to generate a new value.
|
||||
|
||||

|
||||

|
||||
|
||||
This continues until we are done.
|
||||
|
||||

|
||||

|
||||
|
||||
Notice how each of the values in the series decays by half each time a new value
|
||||
is added, and the top of the bars in the lower portion of the image represents the
|
||||
|
||||
Reference in New Issue
Block a user