Struct average::Histogram10[][src]

pub struct Histogram10 { /* fields omitted */ }

A histogram with a number of bins known at compile time.

Methods

impl Histogram10
[src]

Construct a histogram with constant bin width.

Construct a histogram from given ranges.

The ranges are given by an iterator of floats where neighboring pairs (a, b) define a bin for all x where a <= x < b.

Fails if the iterator is too short (less than n + 1 where n is the number of bins), is not sorted or contains nan. inf and empty ranges are allowed.

Find the index of the bin corresponding to the given sample.

Fails if the sample is out of range of the histogram.

Add a sample to the histogram.

Fails if the sample is out of range of the histogram.

Return the ranges of the histogram.

Important traits for IterHistogram<'a>

Return an iterator over the bins and corresponding ranges: ((lower, upper), count)

Reset all bins to zero.

Return the lower range limit.

(The corresponding bin might be empty.)

Return the upper range limit.

(The corresponding bin might be empty.)

Trait Implementations

impl Debug for Histogram10
[src]

Formats the value using the given formatter. Read more

impl Clone for Histogram10
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> IntoIterator for &'a Histogram10
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Important traits for IterHistogram<'a>

Creates an iterator from a value. Read more

impl Histogram for Histogram10
[src]

Return the bins of the histogram.

Estimate the variance for the given bin. Read more

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

Return an iterator over the bin widths.

Return an iterator over the bin centers.

Return an iterator over the bin variances. Read more

impl<'a> AddAssign<&'a Self> for Histogram10
[src]

Performs the += operation.

impl MulAssign<u64> for Histogram10
[src]

Performs the *= operation.

impl Merge for Histogram10
[src]

Auto Trait Implementations

impl Send for Histogram10

impl Sync for Histogram10