Skip to main content

slice_mean

Function slice_mean 

Source
pub fn slice_mean(data: &[f64]) -> Option<f64>
Expand description

Compute the arithmetic mean of a slice.

Returns None if the slice is empty.