Function engram::statistics::mean
source · pub fn mean<T: Into<f64> + Copy>(data: &[T]) -> f64
Expand description
Returns the mean of a list of values.
§Examples
let values = vec![1.0, 2.0, 3.0, 4.0, 5.0, 6.0];
let mean = mean(&values);