mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
feat!: covariance replaced by covariance2, window altered to minimum of
the window of the two observables. Tests adjusted.
This commit is contained in:
parent
06f4caf579
commit
ec20ee38a6
4 changed files with 10 additions and 79 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue