[][src]Function mememo::mean

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

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));