summaryrefslogtreecommitdiff
path: root/boost/accumulators/statistics/weighted_p_square_quantile.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/accumulators/statistics/weighted_p_square_quantile.hpp')
-rw-r--r--boost/accumulators/statistics/weighted_p_square_quantile.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/boost/accumulators/statistics/weighted_p_square_quantile.hpp b/boost/accumulators/statistics/weighted_p_square_quantile.hpp
index 5dc84f4764..2ebc7b1845 100644
--- a/boost/accumulators/statistics/weighted_p_square_quantile.hpp
+++ b/boost/accumulators/statistics/weighted_p_square_quantile.hpp
@@ -44,7 +44,7 @@ namespace impl {
For further details, see
- R. Jain and I. Chlamtac, The P^2 algorithmus for dynamic calculation of quantiles and
+ R. Jain and I. Chlamtac, The P^2 algorithm for dynamic calculation of quantiles and
histograms without storing observations, Communications of the ACM,
Volume 28 (October), Number 10, 1985, p. 1076-1085.
@@ -55,7 +55,7 @@ namespace impl {
: accumulator_base
{
typedef typename numeric::functional::multiplies<Sample, Weight>::result_type weighted_sample;
- typedef typename numeric::functional::average<weighted_sample, std::size_t>::result_type float_type;
+ typedef typename numeric::functional::fdiv<weighted_sample, std::size_t>::result_type float_type;
typedef array<float_type, 5> array_type;
// for boost::result_of
typedef float_type result_type;
@@ -80,7 +80,7 @@ namespace impl {
this->heights[cnt - 1] = args[sample];
// In this initialization phase, actual_positions stores the weights of the
- // inital samples that are needed at the end of the initialization phase to
+ // initial samples that are needed at the end of the initialization phase to
// compute the correct initial positions of the markers.
this->actual_positions[cnt - 1] = args[weight];