Function mean
Source pub fn mean(a: &[f32]) -> f32
Expand description
Computes the mean (average) of a vector a.
§Arguments
§Returns
The mean of the vector a.
§Examples
let a = [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0];
let mean_value = intspan::mean(&a);
assert_eq!(mean_value, 5.5);