Function statistics::variance
[−]
[src]
pub fn variance<T: ToReal<R>, R: Real>(data: &[T]) -> R
Compute an estimate of the population variance from a finite sample.
The estimate is unbiased. The computation is based on the compensated-summation version of the two-pass algorithm.