pub struct Mean;
Implementations§
source§impl Mean
impl Mean
pub fn mean_f(data: &[f64]) -> f64
pub fn mean_i(data: &[i64]) -> f64
pub fn weighted_average_f(data: &[f64], weights: &[f64]) -> f64
pub fn weighted_average_i(data: &[i64], weights: &[i64]) -> f64
pub fn median_f(data: &[f64]) -> f64
pub fn median_i(data: &[i64]) -> f64
pub fn mode<T: Eq + Ord + Clone + Hash>(data: &[T]) -> Option<T>
pub fn mode_f64(data: &[f64]) -> Option<f64>
pub fn variance_f(data: &[f64]) -> f64
pub fn variance_i(data: &[i64]) -> f64
pub fn standard_deviation_f(data: &[f64]) -> f64
pub fn standard_deviation_i(data: &[i64]) -> f64
Auto Trait Implementations§
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