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