[Boost-bugs] [ boost-Bugs-1220358 ] binomial_distribution.hpp

Bugs item #1220358, was opened at 2005-06-14 05:52 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1220358&group_id=7586 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: random Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Jens Maurer (jmaurer) Summary: binomial_distribution.hpp Initial Comment: binomial_distribution gives wrong results, because ctor only default initializes private member _bernoulli, therefore probability is always p=0.5 (the default of bernoulli_distribution). Solution: put _bernoulli(p) into the initializes list of binomial_distribution ctor. Bernd Burghardt: burghard@theorie.physik.uni-goettingen.de ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1220358&group_id=7586 ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ Boost-bugs mailing list Boost-bugs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/boost-bugs
participants (1)
-
SourceForge.net