Boost C++ Libraries: Ticket #5703: geometric_distribution::min() returns wrong value https://svn.boost.org/trac10/ticket/5703 <p> geometric_distribution::min() returns always 1. (boost 1.47) </p> <p> I think, this is a wrong value. </p> <p> 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/5703 Trac 1.4.3 bolero.murakami+cpp@… Sun, 17 Jul 2011 06:20:14 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5703#comment:1 https://svn.boost.org/trac10/ticket/5703#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">invalid</span> </li> </ul> Ticket bolero.murakami+cpp@… Sun, 17 Jul 2011 06:26:13 GMT <link>https://svn.boost.org/trac10/ticket/5703#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5703#comment:2</guid> <description> <p> sorry posted twice </p> </description> <category>Ticket</category> </item> </channel> </rss>