Struct exponential_decay_histogram::Snapshot [] [src]

pub struct Snapshot { /* fields omitted */ }

Methods

impl Snapshot
[src]

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).

Returns the largest value in the snapshot, or 0 if it is empty.

Returns the smallest value in the snapshot, or 0 if it is empty.

Returns the mean of the values in the snapshot, or 0 if it is empty.

Returns the standard deviation of the values in the snapshot, or 0 if it is empty.

Returns the number of values which have been written to the histogram at the time of the snapshot.