[][src]Trait average::Histogram

pub trait Histogram where
    &'a Self: IntoIterator<Item = ((f64, f64), u64)>, 
{ fn bins(&self) -> &[u64]; fn variance(&self, bin: usize) -> f64 { ... }
fn normalized_bins(
        &self
    ) -> IterNormalized<<&Self as IntoIterator>::IntoIter> { ... }
fn widths(&self) -> IterWidths<<&Self as IntoIterator>::IntoIter> { ... }
fn centers(&self) -> IterBinCenters<<&Self as IntoIterator>::IntoIter> { ... }
fn variances(&self) -> IterVariances<<&Self as IntoIterator>::IntoIter> { ... } }

Get the bins and ranges from a histogram.

Required methods

fn bins(&self) -> &[u64]

Return the bins of the histogram.

Loading content...

Provided methods

fn variance(&self, bin: usize) -> f64

Estimate the variance for the given bin.

The square root of this estimates the error of the bin count.

fn normalized_bins(&self) -> IterNormalized<<&Self as IntoIterator>::IntoIter>

Return an iterator over the bins normalized by the bin widths.

fn widths(&self) -> IterWidths<<&Self as IntoIterator>::IntoIter>

Return an iterator over the bin widths.

fn centers(&self) -> IterBinCenters<<&Self as IntoIterator>::IntoIter>

Return an iterator over the bin centers.

fn variances(&self) -> IterVariances<<&Self as IntoIterator>::IntoIter>

Return an iterator over the bin variances.

This is more efficient than calling variance() for each bin.

Loading content...

Implementors

impl Histogram for Histogram[src]

fn variance(&self, bin: usize) -> f64[src]

fn normalized_bins(&self) -> IterNormalized<<&Self as IntoIterator>::IntoIter>[src]

fn widths(&self) -> IterWidths<<&Self as IntoIterator>::IntoIter>[src]

fn centers(&self) -> IterBinCenters<<&Self as IntoIterator>::IntoIter>[src]

fn variances(&self) -> IterVariances<<&Self as IntoIterator>::IntoIter>[src]

Loading content...