Boost C++ Libraries: Ticket #10867: Undocumented precondition for extended_p_square accumulator https://svn.boost.org/trac10/ticket/10867 <p> probs has to be sorted ascendingly for correct results. This is not mentioned in the documentation. </p> <p> typedef accumulator_set&lt;double, stats&lt;tag::extended_p_square&gt; &gt; accumulator_t; accumulator_t acc(tag::extended_p_square::probabilities = probs); </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10867 Trac 1.4.3 Jens.Decker@… Thu, 11 Dec 2014 13:51:27 GMT attachment set https://svn.boost.org/trac10/ticket/10867 https://svn.boost.org/trac10/ticket/10867 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">accumulator-test-for-boost.cpp</span> </li> </ul> <p> test code showing the missbehaviour if probabilities are not sorted </p> Ticket