Function variance_with_average

Source
pub fn variance_with_average<T: AsRef<[f32]>>(values: T, average: f32) -> f32
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.