Categorygithub.com/getlantern/ema
modulepackage
0.0.0-20190620044903-5943d28f40e4
Repository: https://github.com/getlantern/ema.git
Documentation: pkg.go.dev

# Functions

New creates an EMA with the given default value and alpha.
NewDuration is like New but using time.Duration.
NewDurationWithBeta is the same as NewDuration but supplies a seperate beta to control the decrease rate.
NewWithBeta is the same as New but supplies a seperate beta to control the decrease rate.

# Structs

EMA holds the Exponential Moving Average of a float64 with a the given default α value and a fixed scale of 3 digits.