Function wvector_variance (o2scl)

O2scl : Function List

template<class vec_t, class vec2_t>
double o2scl::wvector_variance(size_t n, const vec_t &data, const vec2_t &weights, double wmean)

Compute the variance of a weighted vector with specified mean.

This function produces the same results as gsl_stats_wvariance_m().

template<class vec_t, class vec2_t>
double o2scl::wvector_variance(const vec_t &data, const vec2_t &weights, double wmean)

Compute the variance of a weighted vector with specified mean.

This function produces the same results as gsl_stats_wvariance_m().

template<class vec_t, class vec2_t>
double o2scl::wvector_variance(size_t n, const vec_t &data, const vec2_t &weights)

Compute the variance of a weighted vector where mean is computed automatically.

This function produces the same results as gsl_stats_wvariance().

template<class vec_t, class vec2_t>
double o2scl::wvector_variance(const vec_t &data, const vec2_t &weights)

Compute the variance of a weighted vector where mean is computed automatically.

This function produces the same results as gsl_stats_wvariance().