Function rgsl::statistics::wmean [−][src]
pub fn wmean(
w: &[f64],
wstride: usize,
data: &[f64],
stride: usize,
n: usize
) -> f64
This function returns the weighted mean of the dataset data with stride stride and length n, using the set of weights w with stride wstride and length n. The weighted mean is defined as,
\Hat\mu = (\sum w_i x_i) / (\sum w_i)