From 5e0020a1129ee7a52c6ed2072ed9435286ce8d91 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Fri, 27 Dec 2024 23:21:14 +0100 Subject: [PATCH] fix error when multiplying negative samples times lognormal --- fermi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fermi.go b/fermi.go index 60c5611..43b4874 100644 --- a/fermi.go +++ b/fermi.go @@ -252,7 +252,7 @@ func multiplyLogDistAndScalar(l Lognormal, s Scalar) (Dist, error) { if s == 0.0 { return Scalar(0.0), nil } else if s < 0.0 { - return operateDistsAsSamples(s, l, "+") + return operateDistsAsSamples(s, l, "*") } else { return multiplyLogDists(l, Lognormal{low: float64(s), high: float64(s)}), nil }