From b776dfdc0bcff9db3108fd3009f24b580e2f4e9c Mon Sep 17 00:00:00 2001 From: Olaf Schumann Date: Tue, 5 Oct 2021 20:20:53 +0000 Subject: [PATCH] Fixed typo in rational distribution constructor --- src/distribution.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/distribution.cpp b/src/distribution.cpp index 362c237fc6..54bd67d805 100644 --- a/src/distribution.cpp +++ b/src/distribution.cpp @@ -100,8 +100,9 @@ Rational::Rational(pugi::xml_node node) const double a = params.at(0); const double b = params.at(1); const double n = params.at(2); + offset_ = std::pow(a, n+1); - span_ = std::pow(a, n+1) - offset_; + span_ = std::pow(b, n + 1) - offset_; ninv_ = 1/(n+1); }