Trait StatisticsExt

Source
pub trait StatisticsExt: Iterator + Sized
where Self::Item: Into<f64> + Copy,
{ // Provided methods fn mean(self) -> Option<f64> { ... } fn variance(self) -> Option<f64> { ... } fn std_dev(self) -> Option<f64> { ... } }
Expand description

Extension trait for iterators to provide statistical operations

Provided Methods§

Source

fn mean(self) -> Option<f64>

Source

fn variance(self) -> Option<f64>

Source

fn std_dev(self) -> Option<f64>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Iterator> StatisticsExt for T
where T::Item: Into<f64> + Copy,