Struct exponential_decay_histogram::Snapshot
[−]
[src]
pub struct Snapshot { /* fields omitted */ }
Methods
impl Snapshot
[src]
fn value(&self, quantile: f64) -> i64
Returns the value at a specified quantile in the snapshot, or 0 if it is empty.
For example, snapshot.quantile(0.5)
returns the median value of the
snapshot.
Panics
Panics if quantile
is not between 0 and 1 (inclusive).
fn max(&self) -> i64
Returns the largest value in the snapshot, or 0 if it is empty.
fn min(&self) -> i64
Returns the smallest value in the snapshot, or 0 if it is empty.
fn mean(&self) -> f64
Returns the mean of the values in the snapshot, or 0 if it is empty.
fn stddev(&self) -> f64
Returns the standard deviation of the values in the snapshot, or 0 if it is empty.
fn count(&self) -> u64
Returns the number of values which have been written to the histogram at the time of the snapshot.