Skip to main content

PROPORTIONAL_RATE_ESTIMATE_CALC_FN

Static PROPORTIONAL_RATE_ESTIMATE_CALC_FN 

Source
pub static PROPORTIONAL_RATE_ESTIMATE_CALC_FN: fn(RateComponents) -> f64
Expand description

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

Specifically, it linearly interpolates between the event counts of the previous and current periods based on how far into the current period we are, as described in this post: https://blog.cloudflare.com/counting-things-a-lot-of-different-things/