pub struct Histogram { /* private fields */ }
Expand description
Image histogram
Implementations
sourceimpl Histogram
impl Histogram
sourcepub fn bins(&self) -> impl '_ + Iterator<Item = (usize, usize)>
pub fn bins(&self) -> impl '_ + Iterator<Item = (usize, usize)>
Returns an iterator over all bins
sourcepub fn min_index(&self) -> usize
pub fn min_index(&self) -> usize
Get the bin index of the minimum value. There may be other bins with the same value, which would not be reported by this function
sourcepub fn max_index(&self) -> usize
pub fn max_index(&self) -> usize
Get the bin index of the maximum value. There may be other bins with the same value, which would not be reported by this function
sourcepub fn distribution(&self) -> Vec<f64>
pub fn distribution(&self) -> Vec<f64>
Get distribution of values
Trait Implementations
impl StructuralPartialEq for Histogram
Auto Trait Implementations
impl RefUnwindSafe for Histogram
impl Send for Histogram
impl Sync for Histogram
impl Unpin for Histogram
impl UnwindSafe for Histogram
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more