mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 11:33:42 +02:00
Fixes least_squares with migrad, tests extended
This commit is contained in:
parent
9b63d8e2bd
commit
d1e18b6673
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue