[][src]Struct exponential_decay_histogram::Snapshot

pub struct Snapshot { /* fields omitted */ }

A snapshot of the state of an ExponentialDecayHistogram at some point in time.

Methods

impl Snapshot[src]

pub fn value(&self, quantile: f64) -> i64[src]

Returns the value at a specified quantile in the snapshot, or 0 if it is empty.

For example, snapshot.value(0.5) returns the median value of the snapshot.

Panics

Panics if quantile is not between 0 and 1 (inclusive).

pub fn max(&self) -> i64[src]

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

pub fn min(&self) -> i64[src]

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

pub fn mean(&self) -> f64[src]

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

pub fn stddev(&self) -> f64[src]

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

pub fn count(&self) -> u64[src]

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

Important traits for Values<'a>
pub fn values<'a>(&'a self) -> Values<'a>[src]

Returns an iterator over the distinct values in the snapshot along with their weights.

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,