mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
feat: Obs.jackknife optimized
This commit is contained in:
parent
00d859cf06
commit
972c8bd366
1 changed files with 1 additions and 3 deletions
|
@ -587,9 +587,7 @@ class Obs:
|
|||
mean = np.mean(full_data)
|
||||
tmp_jacks = np.zeros(n + 1)
|
||||
tmp_jacks[0] = self.value
|
||||
for i in range(n):
|
||||
tmp_jacks[i + 1] = (n * mean - full_data[i]) / (n - 1)
|
||||
|
||||
tmp_jacks[1:] = (n * mean - full_data) / (n - 1)
|
||||
return tmp_jacks
|
||||
|
||||
def __float__(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue