Opened 17 years ago
Closed 17 years ago
#410 closed Bugs (Fixed)
binomial_distribution.hpp
Reported by: | nobody | Owned by: | jmaurer |
---|---|---|---|
Milestone: | Component: | random | |
Version: | None | Severity: | |
Keywords: | Cc: |
Description
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
Note:
See TracTickets
for help on using tickets.