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 ¶ added in v1.6.11
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 ¶ added in v1.6.11
func NewSyncAverager ¶ added in v1.6.11
Click to show internal directories.
Click to hide internal directories.