Boost::accumulator's percentile giving wrong values
<p>I am using <code>boost::accumulators::tag::extended_p_square_quantile</code> for calculating percentile. In this, I also need to feed probabilities to the accumulator so I did this <code>m_acc = AccumulatorType(boost::accumulators::extended_p_square_probabilities = probs);</code> where probs is a vector containing the probabilities. </p>

<p>Values in the prob vector are <code>{0.5,0.3,0.9,0.7}</code></p>

<p>I provided some sample values to accumulator.</p>

<p>But when I try to get the percentile using <code>boost::accumulators::quantile(m_acc, boost::accumulators::quantile_probability = probs[0]);</code> it returns incorrect values and even nan sometimes.</p>

<p>What is wrong here?</p>