Expand description
This module contains the implementation of a ‘histogram’.
A histogram is simply a counter of how many times an individual item has appeared in a given dataset.
For example, given the bytes [0, 1, 2, 0, 1], the histogram would be [2, 2, 1],
as bytes 0 and 1 appear two times, but the byte 2 appears once.
The histogram code in this module is built around calculating occurrences of bytes, the amount of times a byte has been met is stored.
Re-exports§
pub use histogram32::*;
Modules§
- histogram32
- Implementation of a histogram using 32-bit unsigned integers as counters.
Structs§
- Histogram
- The implementation of a generic histogram, storing the for each byte using type
T.Tshould be a type that can be incremented.