Skip to main content

variance

Function variance 

Source
pub fn variance(data: &[f64]) -> f64
Expand description

Returns the unbiased sample variance of data (divides by n − 1).

Returns 0.0 for slices with fewer than 2 elements.