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§
sourcefn mean(&self, n_sample: Option<usize>) -> Vec<f64>
fn mean(&self, n_sample: Option<usize>) -> Vec<f64>
Returns the mean values
Optionally, the statistical moment is evaluated on the last n_sample