From f615be41f077464a6af5fdddf2b7da01aff62654 Mon Sep 17 00:00:00 2001 From: "Dr. Kashif Rasul" Date: Mon, 6 Apr 2020 12:09:38 +0200 Subject: [PATCH] Revert "scale alpha so that the var stays the same" This reverts commit 3c6bbf28d7022771dfe0e4b121da3810688e9a9c. --- pts/modules/distribution_output.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pts/modules/distribution_output.py b/pts/modules/distribution_output.py index f1c9582..ad08783 100644 --- a/pts/modules/distribution_output.py +++ b/pts/modules/distribution_output.py @@ -136,8 +136,8 @@ class NegativeBinomialOutput(DistributionOutput): mu, alpha = distr_args if scale is not None: - alpha = (1 - scale + mu*alpha)/(mu*scale*scale) - mu = mu*scale + mu *= scale + alpha /= scale n = 1.0 / alpha p = mu * alpha / (1.0 + mu * alpha)