pub struct Statistic { /* private fields */ }
Implementations§
Source§impl Statistic
impl Statistic
pub fn new(initial_val: f32) -> Self
pub fn last_value(&self) -> f32
pub fn count(&self) -> i32
pub fn min(&self) -> f32
pub fn max(&self) -> f32
pub fn mean(&self) -> f32
pub fn sum(&self) -> f32
pub fn variance(&self) -> f32
pub fn std_dev(&self) -> f32
pub fn skewness(&self) -> f32
pub fn kurtosis(&self) -> f32
pub fn add(&mut self, value: f32)
pub fn clear(&mut self)
Trait Implementations§
impl StructuralPartialEq for Statistic
Auto Trait Implementations§
impl Freeze for Statistic
impl RefUnwindSafe for Statistic
impl Send for Statistic
impl Sync for Statistic
impl Unpin for Statistic
impl UnwindSafe for Statistic
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