pub struct Mean { /* private fields */ }Expand description
The mean. This is only implemented for DecimalWrapper, though it could probably be extended for floating point
types.
Trait Implementations§
Source§impl Accumulate<DecimalWrapper, DecimalWrapper> for Mean
impl Accumulate<DecimalWrapper, DecimalWrapper> for Mean
Source§fn new(item: DecimalWrapper) -> Mean
fn new(item: DecimalWrapper) -> Mean
Creates a new object with an initial value (often based on the value of
item.) Read moreSource§fn update(&mut self, item: DecimalWrapper)
fn update(&mut self, item: DecimalWrapper)
Adds a new value to the accumulator.
Source§fn compute(&self) -> Option<DecimalWrapper>
fn compute(&self) -> Option<DecimalWrapper>
Computes the final value. Returns an option value, which is usually guaranteed to be Some(val)
(with the exception of
StdDev.)Auto Trait Implementations§
impl Freeze for Mean
impl RefUnwindSafe for Mean
impl Send for Mean
impl Sync for Mean
impl Unpin for Mean
impl UnwindSafe for Mean
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