Function rgsl::statistics::wtss[][src]

pub fn wtss(
    w: &[f64],
    wstride: usize,
    data: &[f64],
    stride: usize,
    n: usize
) -> f64
Expand description

This function returns the weighted total sum of squares (TSS) of data about the weighted mean. For gsl_stats_wtss_m the user-supplied value of wmean is used, and for gsl_stats_wtss it is computed using gsl_stats_wmean.

TSS = \sum w_i (x_i - wmean)^2