From 9d28c328f938bf5879e25953168dcdd4dce162c8 Mon Sep 17 00:00:00 2001 From: "pierre-francois.duc" Date: Wed, 10 Apr 2024 14:59:53 +0200 Subject: [PATCH] Correct the sampling of coincident switch-on on peak Related to https://github.com/RAMP-project/RAMP/issues/99 --- ramp/core/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ramp/core/core.py b/ramp/core/core.py index 4177707..f617a2d 100644 --- a/ramp/core/core.py +++ b/ramp/core/core.py @@ -1824,7 +1824,7 @@ def calc_coincident_switch_on(self, inside_peak_window: bool = True): 1, math.ceil( random.gauss( - mu=(self.number * mu_peak + 0.5), + mu=(self.number * mu_peak), sigma=(s_peak * self.number * mu_peak), ) ),