pub fn mean<T>(input: &[T]) -> Twhere T: Float + NumAssign + Copy,
Simply calculate the mean of a vector of numbers