Module vincenzo::avg

source ·
Expand description

Exponential moving average accumulator.

Structs

  • An algorithm is used that addresss the initial bias that occurs when all values are initialized with zero or with the first sample (which would bias the average toward the first value). This is achieved by initially giving a low gain for the average and slowly increasing it until the inverted gain is reached.
  • Wraps a SlidingAvg instance and converts the statistics to std::time::Duration units (keeping everything in the underlying layer as milliseconds).