mean

Function mean 

Source
pub fn mean(numbers: &Vec<i32>) -> f64
Expand description

Calculates the mean of the elements in the given vector.

ยงExample

let numbers = vec![1, 2, 3, 4];
assert_eq!(2.5, mememo::mean(&numbers));