Fixes least_squares with migrad, tests extended

This commit is contained in:
Simon Kuberski 2022-02-02 09:05:13 +01:00
parent 9b63d8e2bd
commit d1e18b6673
2 changed files with 5 additions and 2 deletions

View file

@ -49,6 +49,8 @@ def test_least_squares():
y = a[0] * np.exp(-a[1] * x)
return y
out = pe.least_squares(x, oy, func, method='migrad')
out = pe.least_squares(x, oy, func, method='Powell')
out = pe.least_squares(x, oy, func, expected_chisquare=True, resplot=True, qqplot=True)
beta = out.fit_parameters