Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gonuke committed Oct 28, 2024
1 parent 0ef5a1e commit ad0418a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/random_number_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class BinaryDoubleDist : public DoubleDistribution {
double choice_a_, choice_b_;
public:

BinaryDoubleDist(double p_success, doublle choice_a, double choice_b) :
BinaryDoubleDist(double p_success, double choice_a, double choice_b) :
dist(1, p_success),choice_a_(choice_a), choice_b_(choice_b) {
if (p_success < 0) {
throw ValueError("Probability of choice A must be positive");
Expand Down Expand Up @@ -336,7 +336,7 @@ class BinaryIntDist : public IntDistribution {
int choice_a_, choice_b_;
public:

BinaryDoubleDist(double p_success, int choice_a, int choice_b) :
BinaryIntDist(double p_success, int choice_a, int choice_b) :
dist(1, p_success),choice_a_(choice_a), choice_b_(choice_b) {
if (p_success < 0) {
throw ValueError("Probability of choice A must be positive");
Expand Down

0 comments on commit ad0418a

Please sign in to comment.