pub fn average<T: AsRef<[f64]>>(values: T) -> f64
Calculate statistical average for values.
Return NaN if the values are empty.
Filter NaN values in the stream.