average

Function average 

Source
pub fn average<T>(data: Vec<T>) -> Option<T>
where T: Num,
Expand description

Returns the average value of the given data set, or None if data is empty.