diff options
Diffstat (limited to 'boost/accumulators/statistics/weighted_tail_mean.hpp')
-rw-r--r-- | boost/accumulators/statistics/weighted_tail_mean.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/boost/accumulators/statistics/weighted_tail_mean.hpp b/boost/accumulators/statistics/weighted_tail_mean.hpp index 5bdee8aadc..bae8530674 100644 --- a/boost/accumulators/statistics/weighted_tail_mean.hpp +++ b/boost/accumulators/statistics/weighted_tail_mean.hpp @@ -82,9 +82,9 @@ namespace impl : accumulator_base { typedef typename numeric::functional::multiplies<Sample, Weight>::result_type weighted_sample; - typedef typename numeric::functional::average<Weight, std::size_t>::result_type float_type; + typedef typename numeric::functional::fdiv<Weight, std::size_t>::result_type float_type; // for boost::result_of - typedef typename numeric::functional::average<weighted_sample, std::size_t>::result_type result_type; + typedef typename numeric::functional::fdiv<weighted_sample, std::size_t>::result_type result_type; non_coherent_weighted_tail_mean_impl(dont_care) {} @@ -120,7 +120,7 @@ namespace impl } } - return numeric::average( + return numeric::fdiv( std::inner_product( tail(args).begin() , tail(args).begin() + n |