pub struct Stats { /* private fields */ }Implementations§
Source§impl Stats
impl Stats
pub fn new() -> Self
pub fn reset(&mut self)
pub fn mean(&mut self) -> Option<f64>
pub fn stddev(&mut self) -> Option<f64>
pub fn min(&self) -> Option<f64>
pub fn max(&self) -> Option<f64>
pub fn append(&mut self, other: &mut [f64])
pub fn count_in_range<R>(&mut self, range: &R) -> [usize; 2]where
R: RangeBounds<usize>,
pub fn data(&mut self) -> Vec<f64>
pub fn drain<R>(&mut self, range: R) -> Vec<f64>where
R: RangeBounds<usize>,
pub fn insert(&mut self, index: usize, element: f64)
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn pop(&mut self) -> Option<f64>
pub fn push(&mut self, x: f64)
pub fn push_vec(&mut self, v: Vec<f64>)
pub fn remove(&mut self, index: usize) -> f64
pub fn resize(&mut self, new_len: usize, value: f64)
pub fn splice<R>(&mut self, range: R, replace_with: Vec<f64>) -> Vec<f64>where
R: RangeBounds<usize>,
pub fn split_off(&mut self, at: usize) -> Vec<f64>
pub fn swap_remove(&mut self, index: usize) -> f64
pub fn trim(&mut self, index: usize)
pub fn truncate(&mut self, len: usize)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
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