pub type Histogram<T> = DetailedHistogram<T, T>;
Expand description
A helper type alias for Histogram that doesn’t store details. The structure can be used in production without much memory penalty.
Aliased Type§
struct Histogram<T> {
buckets: Vec<Bucket<T>>,
values: Option<Vec<T>>,
}
Fields§
§buckets: Vec<Bucket<T>>
§values: Option<Vec<T>>
Implementations
source§impl<T: NumberType, D: Details<T>> DetailedHistogram<T, D>
impl<T: NumberType, D: Details<T>> DetailedHistogram<T, D>
fn new_internal(ranges: &[Range<T>], details: bool) -> Result<Self>
sourcepub fn new(ranges: &[Range<T>]) -> Result<Self>
pub fn new(ranges: &[Range<T>]) -> Result<Self>
Creates an histogram with given ranges of buckets.
sourcepub fn simple_stat(&self) -> SimpleStat<T>
pub fn simple_stat(&self) -> SimpleStat<T>
Returns simple stat for the histogram.