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
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.