summaryrefslogtreecommitdiff
path: root/boost/accumulators/statistics/weighted_tail_variate_means.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/accumulators/statistics/weighted_tail_variate_means.hpp')
-rw-r--r--boost/accumulators/statistics/weighted_tail_variate_means.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/boost/accumulators/statistics/weighted_tail_variate_means.hpp b/boost/accumulators/statistics/weighted_tail_variate_means.hpp
index da181896a1..2c9078335d 100644
--- a/boost/accumulators/statistics/weighted_tail_variate_means.hpp
+++ b/boost/accumulators/statistics/weighted_tail_variate_means.hpp
@@ -37,7 +37,7 @@
namespace boost
{
// for _BinaryOperatrion2 in std::inner_product below
- // mutliplies two values and promotes the result to double
+ // multiplies two values and promotes the result to double
namespace numeric { namespace functional
{
///////////////////////////////////////////////////////////////////////////////
@@ -107,8 +107,8 @@ namespace impl
struct weighted_tail_variate_means_impl
: accumulator_base
{
- typedef typename numeric::functional::average<Weight, Weight>::result_type float_type;
- typedef typename numeric::functional::average<typename numeric::functional::multiplies<VariateType, Weight>::result_type, Weight>::result_type array_type;
+ typedef typename numeric::functional::fdiv<Weight, Weight>::result_type float_type;
+ typedef typename numeric::functional::fdiv<typename numeric::functional::multiplies<VariateType, Weight>::result_type, Weight>::result_type array_type;
// for boost::result_of
typedef iterator_range<typename array_type::iterator> result_type;