summaryrefslogtreecommitdiff
path: root/boost/accumulators/statistics/moment.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/accumulators/statistics/moment.hpp')
-rw-r--r--boost/accumulators/statistics/moment.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/accumulators/statistics/moment.hpp b/boost/accumulators/statistics/moment.hpp
index 20421730c3..3dabd47ecf 100644
--- a/boost/accumulators/statistics/moment.hpp
+++ b/boost/accumulators/statistics/moment.hpp
@@ -55,7 +55,7 @@ namespace impl
{
BOOST_MPL_ASSERT_RELATION(N::value, >, 0);
// for boost::result_of
- typedef typename numeric::functional::average<Sample, std::size_t>::result_type result_type;
+ typedef typename numeric::functional::fdiv<Sample, std::size_t>::result_type result_type;
template<typename Args>
moment_impl(Args const &args)
@@ -72,7 +72,7 @@ namespace impl
template<typename Args>
result_type result(Args const &args) const
{
- return numeric::average(this->sum, count(args));
+ return numeric::fdiv(this->sum, count(args));
}
private: