feat: implemented eigenvalue smoothing method of hep-lat/9412087

This commit is contained in:
Fabian Joswig 2022-03-07 14:10:02 +00:00
parent e5d7271a2b
commit 8cd96c584e
2 changed files with 27 additions and 2 deletions

View file

@ -461,7 +461,7 @@ def _standard_fit(x, y, func, silent=False, **kwargs):
x0 = [0.1] * n_parms
if kwargs.get('correlated_fit') is True:
corr = covariance(y, correlation=True)
corr = covariance(y, correlation=True, **kwargs)
covdiag = np.diag(1 / np.asarray(dy_f))
condn = np.linalg.cond(corr)
if condn > 1e8: