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