pub struct Series<'a> { /* private fields */ }Implementations§
Source§impl<'a> Series<'a>
impl<'a> Series<'a>
pub fn new(values: &'a [f64]) -> Series<'a>
pub fn sort(&mut self)
pub fn values(&self) -> &[f64]
pub fn summary(&self) -> Summary
pub fn count(&self) -> u64
pub fn is_empty(&self) -> bool
pub fn sum(&self) -> f64
pub fn mean(&self) -> Option<f64>
pub fn min(&self) -> Option<f64>
pub fn max(&self) -> Option<f64>
pub fn rms(&self) -> Option<f64>
pub fn std(&self) -> Option<f64>
pub fn median(&self) -> Option<f64>
pub fn percentile(&self, rank: f64) -> Option<f64>
pub fn all(&self, holds: impl FnMut(f64) -> bool) -> bool
pub fn any(&self, holds: impl FnMut(f64) -> bool) -> bool
pub fn all_below(&self, limit: f64) -> bool
pub fn all_within(&self, min: f64, max: f64) -> bool
Trait Implementations§
Source§impl FromIterator<f64> for Series<'static>
impl FromIterator<f64> for Series<'static>
impl<'a> StructuralPartialEq for Series<'a>
Auto Trait Implementations§
impl<'a> Freeze for Series<'a>
impl<'a> RefUnwindSafe for Series<'a>
impl<'a> Send for Series<'a>
impl<'a> Sync for Series<'a>
impl<'a> Unpin for Series<'a>
impl<'a> UnsafeUnpin for Series<'a>
impl<'a> UnwindSafe for Series<'a>
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