Skip to main content

Module rate

Module rate 

Source
Expand description

The rate module defines the Rate type that helps estimate the occurrence of events over a period of time.

Structs§

Rate
A stable rate estimator that reports the rate of events per period of interval time.
RateComponents
Input struct to custom functions for calculating rate. Includes the counts from the current interval, previous interval, the configured duration of an interval, and the fraction into the current interval that the sample was taken.

Statics§

PROPORTIONAL_RATE_ESTIMATE_CALC_FN
A rate calculation function which uses a good estimate of the rate of events over the past interval time.