Boost C++ Libraries: Ticket #5704: geometric_distribution::min() returns wrong value https://svn.boost.org/trac10/ticket/5704 <p> geometric_distribution::min() returns always 1. (boost 1.47) </p> <p> I think, this is a wrong value. Should return 0. </p> <p> In fact, boost::random::geometric_distribution::operator()(Engine) is sometimes returns 0. </p> <p> The boost::random::geometric_distribution class has been updated to match the C++ standard. </p> <p> Boost 1.46.1 : p(i) = (1-p)p<sup>(i-1)</sup> </p> <p> Boost 1.47 : p(i) = p(1-p)<sup>i</sup> </p> <p> If the previous specification, then it should return 1. </p> <p> However, the current specification, should return 0. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5704 Trac 1.4.3 Steven Watanabe Tue, 30 Aug 2011 19:31:45 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5704#comment:1 https://svn.boost.org/trac10/ticket/5704#comment:1 <ul> <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> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/74168" title="geometric_distribution::min should be 0. Fixes #5704.">[74168]</a>) geometric_distribution::min should be 0. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5704" title="#5704: Bugs: geometric_distribution::min() returns wrong value (closed: fixed)">#5704</a>. </p> Ticket