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

Change History (1)

comment:1 by jmaurer, 17 years ago

Status: assignedclosed
Logged In: YES 
user_id=53943

Oops. Indeed. Fixed in the CVS.
Note: See TracTickets for help on using tickets.