Skip to main content

weighted_mean

Function weighted_mean 

Source
pub fn weighted_mean(x: &[f64], weights: &[f64]) -> Result<f64, ErrorsJSL>
Expand description

The weighted mean Σ wᵢxᵢ / Σ wᵢ.