Versions in this module Expand all Collapse all v1 v1.0.0 May 21, 2019 Changes in this version + type ConcurrentMovingAverage struct + func Concurrent(ma *MovingAverage) *ConcurrentMovingAverage + func (c *ConcurrentMovingAverage) Add(values ...float64) + func (c *ConcurrentMovingAverage) Avg() float64 + func (c *ConcurrentMovingAverage) Count() int + func (c *ConcurrentMovingAverage) Max() (float64, error) + func (c *ConcurrentMovingAverage) Min() (float64, error) + func (c *ConcurrentMovingAverage) SlotsFilled() bool + func (c *ConcurrentMovingAverage) Values() []float64 + type MovingAverage struct + Window int + func New(window int) *MovingAverage + func (ma *MovingAverage) Add(values ...float64) + func (ma *MovingAverage) Avg() float64 + func (ma *MovingAverage) Count() int + func (ma *MovingAverage) Max() (float64, error) + func (ma *MovingAverage) Min() (float64, error) + func (ma *MovingAverage) SetIgnoreInfValues(ignoreInfValues bool) + func (ma *MovingAverage) SetIgnoreNanValues(ignoreNanValues bool) + func (ma *MovingAverage) SlotsFilled() bool + func (ma *MovingAverage) Values() []float64