Skip to main content

sample_slot

Function sample_slot 

Source
fn sample_slot(index: u64) -> Option<usize>
Expand description

Returns the slot of a HISTOGRAM_CAP-value sample that the value numbered index in an interval replaces, if it is sampled: each of the first values takes the next slot, then each later value replaces a random slot with probability HISTOGRAM_CAP / (index + 1).