[−][src]Trait agnes::stats::Variance
A trait for computing the variance and standard deviation of values in a field.
Required methods
fn var(&self) -> f64
Computes sample variance of this field. Ignores missing values in this computation. If all
values are missing, returns 0.0
.
fn varp(&self) -> f64
Computes population variance of this field. Ignores missing values in this computation. If
all values are missing, returns 0.0
.
Provided methods
fn stdev(&self) -> f64
Computes sample standard deviation of this field. Ignores missing values in this
computation. If all values are missing, returns 0.0
.
fn stdevp(&self) -> f64
Computes population standard deviation of this field. Ignores missing values in this
computation. If all values are missing, returns 0.0
.
Implementors
impl<DI> Variance for DI where
DI: DataIndex + SumSq + NaCount + Mean,
<DI as SumSq>::Output: AsPrimitive<f64>,
[src]
DI: DataIndex + SumSq + NaCount + Mean,
<DI as SumSq>::Output: AsPrimitive<f64>,