From 12a93eafb02418c74907c57516c4f7a9c8e0c982 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Mon, 6 Dec 2021 10:54:06 +0000 Subject: [PATCH] feat: performance of export to jackknife improved --- pyerrors/obs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyerrors/obs.py b/pyerrors/obs.py index 5570f509..c1fcc8ca 100644 --- a/pyerrors/obs.py +++ b/pyerrors/obs.py @@ -623,9 +623,9 @@ class Obs: name = self.names[0] full_data = self.deltas[name] + self.r_values[name] n = full_data.size - mean = np.mean(full_data) + mean = self.value tmp_jacks = np.zeros(n + 1) - tmp_jacks[0] = self.value + tmp_jacks[0] = mean tmp_jacks[1:] = (n * mean - full_data) / (n - 1) return tmp_jacks