diff options
Diffstat (limited to 'boost/accumulators/statistics/weighted_moment.hpp')
-rw-r--r-- | boost/accumulators/statistics/weighted_moment.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/accumulators/statistics/weighted_moment.hpp b/boost/accumulators/statistics/weighted_moment.hpp index f49c362d95..011701c704 100644 --- a/boost/accumulators/statistics/weighted_moment.hpp +++ b/boost/accumulators/statistics/weighted_moment.hpp @@ -40,7 +40,7 @@ namespace impl BOOST_MPL_ASSERT_RELATION(N::value, >, 0); typedef typename numeric::functional::multiplies<Sample, Weight>::result_type weighted_sample; // for boost::result_of - typedef typename numeric::functional::average<weighted_sample, Weight>::result_type result_type; + typedef typename numeric::functional::fdiv<weighted_sample, Weight>::result_type result_type; template<typename Args> weighted_moment_impl(Args const &args) @@ -57,7 +57,7 @@ namespace impl template<typename Args> result_type result(Args const &args) const { - return numeric::average(this->sum, sum_of_weights(args)); + return numeric::fdiv(this->sum, sum_of_weights(args)); } private: |