Skip to main content

std_dev

Function std_dev 

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

Computes the sample standard deviation of a slice of values.

Returns 0.0 if the slice has fewer than 2 elements.