Stats

Trait Stats 

Source
pub trait Stats {
    // Provided methods
    fn mean(&self, n_sample: Option<usize>) -> Vec<f64>
       where Self: Deref<Target = Vec<f64>> + OpticalMetrics { ... }
    fn var(&self, n_sample: Option<usize>) -> Vec<f64>
       where Self: Deref<Target = Vec<f64>> + OpticalMetrics { ... }
    fn std(&self, n_sample: Option<usize>) -> Vec<f64>
       where Self: Deref<Target = Vec<f64>> + OpticalMetrics { ... }
}
Expand description

Statistics on OpticalMetrics

Provided Methods§

Source

fn mean(&self, n_sample: Option<usize>) -> Vec<f64>
where Self: Deref<Target = Vec<f64>> + OpticalMetrics,

Returns the mean values

Optionally, the statistical moment is evaluated on the last n_sample

Source

fn var(&self, n_sample: Option<usize>) -> Vec<f64>
where Self: Deref<Target = Vec<f64>> + OpticalMetrics,

Returns the mean variance values

Optionally, the statistical moment is evaluated on the last n_sample

Source

fn std(&self, n_sample: Option<usize>) -> Vec<f64>
where Self: Deref<Target = Vec<f64>> + OpticalMetrics,

Returns the standard deviation values

Optionally, the statistical moment is evaluated on the last n_sample

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§