Skip to main content

MAX_MEDIAN_HALF_WINDOW

Constant MAX_MEDIAN_HALF_WINDOW 

Source
pub const MAX_MEDIAN_HALF_WINDOW: usize = 1000;
Expand description

The most samples either side of its center the running median takes: hpr’s choice, the MEDIAN_WINDOW_S window at over 6 kHz, faster than any logger hpr reads. A log sampled faster is withheld (Reason::SampledTooFast): the median’s cost grows with its window.