feat!: covariance replaced by covariance2, window altered to minimum of

the window of the two observables. Tests adjusted.
This commit is contained in:
Fabian Joswig 2021-12-13 17:06:03 +00:00
parent 06f4caf579
commit ec20ee38a6
4 changed files with 10 additions and 79 deletions

View file

@ -83,6 +83,8 @@ def test_least_squares():
assert math.isclose(pcov[i, i], betac[i].dvalue ** 2, abs_tol=1e-3)
assert math.isclose(pe.covariance(betac[0], betac[1]), pcov[0, 1], abs_tol=1e-3)
def test_correlated_fit():
num_samples = 400
N = 10
@ -101,7 +103,6 @@ def test_least_squares():
c = cholesky(r, lower=True)
y = np.dot(c, x)
x = np.arange(N)
for linear in [True, False]:
data = []