Skip to main content

spans_and_counts

Function spans_and_counts 

Source
fn spans_and_counts(buckets: &[(i32, f64)]) -> (Vec<Span>, Vec<f64>)
Expand description

The spans and absolute counts an owned bucket list encodes as: one span per run of consecutive bucket indices, the first span starting at its own index and every later one stating its gap.