Skip to main content

histogram_into

Function histogram_into 

Source
pub fn histogram_into(values: &[f64], counts: &mut [u32]) -> Option<HistRange>
Expand description

Equal-width histogram into the caller-owned counts buffer (zeroed first). The number of bins is counts.len(). Values outside [min, max] are skipped; a value landing on/above the top edge falls in the last bin. None if the data is empty or counts is empty.