Skip to content

num::weighted_sum

Defined in header <stats/probability.hpp>

template <typename Projection>
real weighted_sum(view<const real> weights, Projection &&value);

Sum weights times values produced by an index projection.