pub struct Histogram { /* private fields */ }
Expand description
Image histogram
Implementations§
Source§impl 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§
Source§impl<'de> Deserialize<'de> for Histogram
impl<'de> Deserialize<'de> for Histogram
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Histogram
impl StructuralPartialEq for Histogram
Auto Trait Implementations§
impl Freeze for Histogram
impl RefUnwindSafe for Histogram
impl Send for Histogram
impl Sync for Histogram
impl Unpin for Histogram
impl UnwindSafe for Histogram
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more