Documentation ¶
Index ¶
Constants ¶
View Source
const MaxInt = int(^uint(0) >> 1)
MaxInt is defined rather than using math.MaxInt to support go versions < 1.17.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Averager ¶
type Averager interface { // Observe the value at the given time Observe(value float64, currentTime time.Time) // Read returns the average of the provided values. Read() float64 }
Averager tracks a continuous time exponential moving average of the provided values.
func NewAverager ¶
func NewSyncAverager ¶
Click to show internal directories.
Click to hide internal directories.