pub struct Summary { /* private fields */ }Implementations§
Source§impl Summary
impl Summary
pub fn new() -> Summary
pub fn of(values: &[f64]) -> Summary
pub fn push(&mut self, value: f64)
pub fn merge(&self, other: &Summary) -> Summary
pub fn count(&self) -> u64
pub fn is_empty(&self) -> bool
pub fn sum(&self) -> f64
pub fn min(&self) -> Option<f64>
pub fn max(&self) -> Option<f64>
pub fn span(&self) -> Option<f64>
pub fn mean(&self) -> Option<f64>
pub fn variance(&self) -> Option<f64>
pub fn std(&self) -> Option<f64>
pub fn rms(&self) -> Option<f64>
Trait Implementations§
impl Copy for Summary
impl StructuralPartialEq for Summary
Auto Trait Implementations§
impl Freeze for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnsafeUnpin for Summary
impl UnwindSafe for Summary
Blanket Implementations§
impl<T> Allocation for T
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