Function variance_with_average

Source
pub fn variance_with_average<T: AsRef<[f64]>>(values: T, average: f64) -> f64
Expand description

Calculate statistical variance for values, given a pre-calculated average value.

Return NaN if the values are empty.

Filter NaN values in the stream.