Trait gmt_lom::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

Implementors§