pub struct Histogram { /* private fields */ }
Expand description

Image histogram

Implementations

Create a new histogram with the given number of bins

Join data from multiple histograms

Add a value to the histogram

Increment a bin without adding a value

Get value of a specific bin

Returns an iterator over all bins

Get the number of bins

Returns true when there are zero bins

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

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

Count the number of bins with the given value

Get distribution of values

Get sum of all values

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.