Skip to main content

READY_AFTER_SAMPLES

Constant READY_AFTER_SAMPLES 

Source
pub const READY_AFTER_SAMPLES: usize = 3;
Expand description

Number of accepted samples ClockFilter needs before it reports an estimate.

Three is the smallest count for which every stage of the filter has run: the first sample seeds the offset, the second seeds the drift, and the third performs the first full predict/correct cycle. This is an availability threshold, not an accuracy one - see ClockFilter::is_ready.