Boost C++ Libraries: Ticket #5733: Uniform distribution complemented cdf wrong meaning https://svn.boost.org/trac10/ticket/5733 <p> The bug occurs out of the bounds of the function for x smaller than lower bound it returns 0. for x greater than higher bound it return 1. It should be vice versa. </p> <p> It is also inconsistent with cdf regular function which returns te same values (and not the complemented). </p> <p> [Code] if (x &lt; lower) { </p> <blockquote> <p> return 0; </p> </blockquote> <p> } if (x &gt; upper) { </p> <blockquote> <p> return 1; </p> </blockquote> <p> } [Code] </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5733 Trac 1.4.3 anonymous Mon, 25 Jul 2011 11:28:16 GMT component changed; owner set https://svn.boost.org/trac10/ticket/5733#comment:1 https://svn.boost.org/trac10/ticket/5733#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">math</span> </li> </ul> Ticket John Maddock Mon, 25 Jul 2011 15:09:24 GMT cc set https://svn.boost.org/trac10/ticket/5733#comment:2 https://svn.boost.org/trac10/ticket/5733#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">pbristow@…</span> added </li> </ul> <p> Paul, was this one one of yours? </p> Ticket Paul A. Bristow Mon, 25 Jul 2011 16:50:05 GMT owner, version, milestone changed https://svn.boost.org/trac10/ticket/5733#comment:3 https://svn.boost.org/trac10/ticket/5733#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">John Maddock</span> to <span class="trac-author">Paul A. Bristow</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.47.0</span> → <span class="trac-field-new">Boost Development Trunk</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.48.0</span> </li> </ul> <p> Confirmed and uniform.hpp and test_uniform.cpp corrected in trunk. Completed: At revision: 73360 </p> Ticket Paul A. Bristow Mon, 25 Jul 2011 16:50:47 GMT status changed; keywords, resolution set https://svn.boost.org/trac10/ticket/5733#comment:4 https://svn.boost.org/trac10/ticket/5733#comment:4 <ul> <li><strong>keywords</strong> uniform cdf complemented added </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket