Struct exponential_decay_histogram::Snapshot [−][src]
A snapshot of the state of an ExponentialDecayHistogram at some point in time.
Implementations
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.
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
impl RefUnwindSafe for Snapshot[src]
impl Send for Snapshot[src]
impl Sync for Snapshot[src]
impl Unpin for Snapshot[src]
impl UnwindSafe for Snapshot[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,