Function get_bin_index

Source
pub fn get_bin_index(
    value: Float,
    bins: usize,
    range: (Float, Float),
) -> Option<usize>
Expand description

A helper method to obtain the index of a bin where a value should go in a histogram with evenly spaced bins over a given range

ยงSee Also

Histogram get_bin_edges