Struct ethcore_util::stats::Histogram
[−]
[src]
pub struct Histogram { pub bucket_bounds: Vec<U256>, pub counts: Vec<u64>, }
Discretised histogram.
Fields
bucket_bounds: Vec<U256>
Bounds of each bucket.
counts: Vec<u64>
Count within each bucket.
Methods
impl Histogram
[src]
fn new(corpus: &[U256], bucket_number: usize) -> Option<Histogram>
Histogram of a sorted corpus if it at least spans the buckets. Bounds are left closed.