From ad0418a91d2320f1458057cf2b9183527901d31b Mon Sep 17 00:00:00 2001 From: "Paul P.H. Wilson" Date: Mon, 28 Oct 2024 17:24:45 -0500 Subject: [PATCH] fix errors --- src/random_number_generator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/random_number_generator.h b/src/random_number_generator.h index 4d5916f19e..9072618f8d 100644 --- a/src/random_number_generator.h +++ b/src/random_number_generator.h @@ -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"); @@ -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");