pub struct Statistic<F: Float = f32> { /* private fields */ }Implementations§
Source§impl<F: Float> Statistic<F>
impl<F: Float> Statistic<F>
pub fn new(initial_val: F) -> Self
pub fn last_value(&self) -> F
pub fn count(&self) -> i32
pub fn min(&self) -> F
pub fn max(&self) -> F
pub fn mean(&self) -> F
pub fn sum(&self) -> F
pub fn variance(&self) -> Option<F>
pub fn std_dev(&self) -> Option<F>
pub fn skewness(&self) -> Option<F>
pub fn kurtosis(&self) -> Option<F>
pub fn add(&mut self, value: F) -> Option<()>
pub fn clear(&mut self)
pub fn merge(&mut self, other: &Statistic<F>)
Trait Implementations§
Source§impl<T: Primitive, F: Float> FromIterator<T> for Statistic<F>
impl<T: Primitive, F: Float> FromIterator<T> for Statistic<F>
Source§fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
Creates a value from an iterator. Read more
impl<F: Float> StructuralPartialEq for Statistic<F>
Auto Trait Implementations§
impl<F> Freeze for Statistic<F>where
F: Freeze,
impl<F> RefUnwindSafe for Statistic<F>where
F: RefUnwindSafe,
impl<F> Send for Statistic<F>where
F: Send,
impl<F> Sync for Statistic<F>where
F: Sync,
impl<F> Unpin for Statistic<F>where
F: Unpin,
impl<F> UnsafeUnpin for Statistic<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for Statistic<F>where
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more