Function classif::stats::variance [] [src]

pub fn variance<T>(values: &[T]) -> T where
    T: Float + NumAssignOps

Compute the variance of a list of values. The variance is the sum of squared deviations from the mean.