[−][src]Struct holochain_metrics::stats::OnlineStats
An extension of stats::OnlineStats
that also incrementally tracks
max and min values.
Methods
impl OnlineStats
[src]
pub fn map<__SHRINKWRAP_T, __SHRINKWRAP_F: FnMut(OnlineStats) -> __SHRINKWRAP_T>(
self,
f: __SHRINKWRAP_F
) -> __SHRINKWRAP_T
[src]
self,
f: __SHRINKWRAP_F
) -> __SHRINKWRAP_T
Map a function over the wrapped value, consuming it in the process.
pub fn map_ref<__SHRINKWRAP_T, __SHRINKWRAP_F: FnMut(&OnlineStats) -> __SHRINKWRAP_T>(
&self,
f: __SHRINKWRAP_F
) -> __SHRINKWRAP_T
[src]
&self,
f: __SHRINKWRAP_F
) -> __SHRINKWRAP_T
Map a function over the wrapped value without consuming it.
impl OnlineStats
[src]
pub fn empty() -> Self
[src]
An initial empty statistic.
pub fn add(&mut self, value: f64)
[src]
Adds a value to the running statistic.
Methods from Deref<Target = OnlineStats>
pub fn mean(&self) -> f64
Return the current mean.
pub fn stddev(&self) -> f64
Return the current standard deviation.
pub fn variance(&self) -> f64
Return the current variance.
pub fn len(&self) -> usize
Returns the number of data points.
Trait Implementations
impl AsRef<OnlineStats> for OnlineStats
[src]
impl Borrow<OnlineStats> for OnlineStats
[src]
impl Clone for OnlineStats
[src]
fn clone(&self) -> OnlineStats
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Commute for OnlineStats
[src]
fn merge(&mut self, rhs: Self)
[src]
fn consume<I>(&mut self, other: I) where
I: Iterator<Item = Self>,
I: Iterator<Item = Self>,
impl Copy for OnlineStats
[src]
impl Debug for OnlineStats
[src]
impl Deref for OnlineStats
[src]
type Target = OnlineStats
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl DescriptiveStats for OnlineStats
[src]
fn mean(&self) -> f64
[src]
The mean value of the running statistic.
fn stddev(&self) -> f64
[src]
The standard deviation of the running statistic.
fn variance(&self) -> f64
[src]
The variance of the running statistic.
fn max(&self) -> f64
[src]
The max of the running statistic.
fn min(&self) -> f64
[src]
The min of the running statistic.
fn cnt(&self) -> f64
[src]
The number of samples of the running statistic.
fn percent_change(&self, other: &dyn DescriptiveStats) -> StatsRecord
[src]
impl From<OnlineStats> for StatsRecord
[src]
fn from(desc_stats: OnlineStats) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for OnlineStats
impl Send for OnlineStats
impl Sync for OnlineStats
impl Unpin for OnlineStats
impl UnwindSafe for OnlineStats
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,
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> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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.
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>,