Function wvector_factor (o2scl)¶
-
template<class vec_t>
double o2scl::wvector_factor(size_t n, const vec_t &weights)¶ Compute a normalization factor for weighted data.
This function is used internally in wvector_variance(size_t
n, vec_t &data, const vec2_t &weights, double wmean) and wvector_stddev(size_t n, vec_t &data, const vec2_t &weights, double
wmean) .
-
template<class vec_t>
double o2scl::wvector_factor(const vec_t &weights)¶ Compute a normalization factor for weighted data.
This function is used internally in wvector_variance(size_t
n, vec_t &data, const vec2_t &weights, double wmean) and wvector_stddev(size_t n, vec_t &data, const vec2_t &weights, double
wmean) .