pub fn sliding_estimate(
cur: u64,
prev: u64,
elapsed: Duration,
window: Duration,
) -> f64Expand description
Blend the current-epoch count with the previous epoch’s, weighted by how much of the current window remains: a request early in the window still “sees” most of the previous window’s traffic, decaying to none by the boundary.