From: Alina Quereilhac Date: Mon, 6 Oct 2014 18:57:10 +0000 (+0200) Subject: small modification to th experiment runner X-Git-Tag: nepi-3.2.0~64 X-Git-Url: http://git.onelab.eu/?p=nepi.git;a=commitdiff_plain;h=564f10aabf3253eb0ba286b12ec0da9fc218a50b small modification to th experiment runner --- diff --git a/src/nepi/execution/runner.py b/src/nepi/execution/runner.py index 0afc7308..2a78be06 100644 --- a/src/nepi/execution/runner.py +++ b/src/nepi/execution/runner.py @@ -130,12 +130,15 @@ class ExperimentRunner(object): std = x.std() se = std / math.sqrt(n) m = x.mean() - se95 = se * 2 + + # confidence interval for 95% confidence level. + # Asuming samples are normally distributed + ci95 = se * 2 - ec.logger.info(" RUN %d - SAMPLES %d MEAN %.2f STD %.2f SE95%% %.2f \n" % ( - run, n, m, std, se95 ) ) + ec.logger.info(" RUN %d - SAMPLES %d MEAN %.2f STD %.2f CI (95%%) %.2f \n" % ( + run, n, m, std, ci95 ) ) - return m * 0.05 >= se95 + return m * 0.05 >= ci95 def run_experiment(self, filepath, wait_time, wait_guids): ec = ExperimentController.load(filepath)