pub struct Calc { /* private fields */ }
Implementations§
Source§impl Calc
impl Calc
pub fn length(&self) -> usize
pub fn even(&self) -> bool
pub fn total(&mut self) -> f64
pub fn mean(&mut self) -> f64
pub fn median(&mut self) -> f64
pub fn sorted_median(&mut self) -> f64
pub fn range(&mut self) -> f64
pub fn variance(&mut self) -> f64
pub fn standart_deviation(&mut self) -> f64
pub fn max_indices(&mut self) -> Vec<usize>
pub fn max_value(&mut self) -> f64
pub fn min_indices(&mut self) -> Vec<usize>
pub fn min_value(&mut self) -> f64
pub fn mode(&mut self) -> f64
pub fn run_all(&mut self)
pub fn display(&self)
pub fn new_i16(data: Vec<i16>) -> Option<Calc>
pub fn new_i32(data: Vec<i32>) -> Option<Calc>
pub fn new_u8(data: Vec<u8>) -> Option<Calc>
pub fn new_u16(data: Vec<u16>) -> Option<Calc>
pub fn new_u32(data: Vec<u32>) -> Option<Calc>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Calc
impl RefUnwindSafe for Calc
impl Send for Calc
impl Sync for Calc
impl Unpin for Calc
impl UnwindSafe for Calc
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more