mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
Merge pull request #84 from fjosw/refactor/covariance_e_N_determination
Simplification and speed up of the computation of e_N in _covariance_element
This commit is contained in:
commit
329e4abfc3
1 changed files with 1 additions and 1 deletions
|
@ -1446,7 +1446,7 @@ def _covariance_element(obs1, obs2):
|
|||
if r_name not in obs2.e_content[e_name]:
|
||||
continue
|
||||
gamma_div += calc_gamma(np.ones(obs1.shape[r_name]), np.ones(obs2.shape[r_name]), obs1.idl[r_name], obs2.idl[r_name], idl_d[r_name])
|
||||
e_N += np.sum(np.ones_like(idl_d[r_name]))
|
||||
e_N += len(idl_d[r_name])
|
||||
gamma /= gamma_div
|
||||
|
||||
# Bias correction hep-lat/0306017 eq. (49)
|
||||
|
|
Loading…
Add table
Reference in a new issue