Commit graph

45 commits

Author SHA1 Message Date
ppetrak
ba54545b4e feat/tests: Correlated fits now also work for combined fits. 2023-02-03 14:54:54 +01:00
ppetrak
80371a0898 fix/tests: Combined fit now also works when the keys of the x,y & func input dictionaries are not in the same order, build: improvements in performance 2023-01-30 14:26:47 +01:00
ppetrak
4b3fac8ee4 tests: invalid fit functions, num_grad vs auto_grad 2022-12-20 18:26:15 +01:00
ppetrak
80c8a0f979 feat: added (default) method Levenberg-Marquardt, test added 2022-12-20 15:26:13 +01:00
Fabian Joswig
33ff2219ba
fix: Combined fit can now handle list and array inputs for y-values, test added. 2022-12-19 16:06:12 +01:00
Fabian Joswig
140b626aae
fix: Combined fit can now handle list and array inputs for x-values,
test added.
2022-12-19 15:15:24 +01:00
Fabian Joswig
850be29d20
tests: test for Hotelling t-squared p-value added. 2022-12-06 17:18:16 +00:00
Simon Kuberski
50ac82ed1d released absolute tolerance in test_fit_corr_independent 2022-10-19 16:28:07 +02:00
Fabian Joswig
f5c9a30266
tests: tests for num_grad version of prior fits added. 2022-10-07 18:02:27 +01:00
Fabian Joswig
e4d18fc8c8
tests: num_grad test for total least squares added. 2022-10-06 18:09:37 +01:00
Fabian Joswig
8cf15b651f
tests: num_grad fit test improved. 2022-10-06 17:55:04 +01:00
Fabian Joswig
f22614f999
tests: tests for num diff least square fits added. 2022-10-05 18:41:28 +01:00
Fabian Joswig
fff74ed69e ci: tolerance on total least squares tolerance test relaxed. 2022-06-28 14:51:12 +01:00
Fabian Joswig
3e29cf9ca8 fix: detection of invalid fit functions extended. 2022-06-24 12:50:26 +01:00
Fabian Joswig
338bf8906a refactor: maintainability issues in tests fixed. 2022-06-24 12:28:49 +01:00
Fabian Joswig
f49562b895 tests: additional test for least square fits added which probes
different initial guess and exceptions.

Tolerance in total least square tests relaxed.
2022-06-10 10:13:49 +01:00
Fabian Joswig
8a911cac61 tests: Correlated least square fit tested against jackknife resampling 2022-06-07 10:59:26 +01:00
Fabian Joswig
c9e0c6e208 tests: linear least_squares fit error estimation tested against jackknife resampling. 2022-06-06 15:11:03 +01:00
Fabian Joswig
e7f5961cd6 fix: bug in estimation of chisquare for correlated fit fixed, tests
added.
2022-05-26 13:52:05 +01:00
Fabian Joswig
6bbd88a8c1 tests: fit_corr_independent now runs for various methods. 2022-05-25 18:03:46 +01:00
Fabian Joswig
c9f65298b4 tests: test added that checks that correlated and uncorrelated fits give
the same result if the input data is uncorrelated.
2022-04-07 17:14:26 +01:00
Fabian Joswig
e6813a6c8e feat: correlated_fit now throws an exception when the correlation matrix
is ill conditioned with respect to the machine precision.

Criterion for warning for ill-conditioned covariance matrix changed to cond > sqrt(eps)

Test added.
2022-03-09 12:24:52 +00:00
Fabian Joswig
99bead518c tests: additional test for expected chiqsquare and correlated fit based
on cov obs added.
2022-03-07 11:54:09 +00:00
Fabian Joswig
b14314b424 fix: Error handling for fits and root finding with numpy instead of autograd.numpy
improved. Tests added.
2022-03-02 15:49:29 +00:00
Fabian Joswig
82419b7a88 feat: positive semi-definite estimator for the covariance implemented,
fits.covariance matrix deprecated, covariance can now handle lists of
observables.
2022-03-01 09:45:25 +00:00
Fabian Joswig
952c7acef5 tests: additional tests for alternative fit methods in
fits.least_squares added
2022-02-02 10:10:20 +00:00
Simon Kuberski
d1e18b6673 Fixes least_squares with migrad, tests extended 2022-02-02 09:05:13 +01:00
Fabian Joswig
6174343de6 test: test for ks_test added 2022-01-10 15:24:43 +01:00
Fabian Joswig
1cbbc68e8b test criterion for correlated fit relaxed 2021-12-20 11:46:05 +01:00
Fabian Joswig
ec20ee38a6 feat!: covariance replaced by covariance2, window altered to minimum of
the window of the two observables. Tests adjusted.
2021-12-13 17:06:03 +00:00
Fabian Joswig
352b93ee2c fix: the covariance functions now correctly check whether the
gamma_method was run. Tests added.
2021-12-09 13:06:49 +00:00
Fabian Joswig
87c50f54c0 refactor!: fit_general deprecated and moved to tests 2021-12-09 10:11:31 +00:00
Fabian Joswig
9ddadaf6b3 fix: fits and root now work when the value of the zeroth input is
exactly zero. Tests extended.
2021-12-07 18:40:36 +00:00
Fabian Joswig
f223b12cc2 fix: instances of plot.show changed to plot.draw in fit module 2021-12-07 08:27:24 +00:00
Fabian Joswig
6028274342 test: test for r_value propagation in fits added 2021-12-04 13:05:18 +00:00
Simon Kuberski
359c9c06da Bugfix for covobs, fit tests for covobs added 2021-11-30 13:32:50 +01:00
Fabian Joswig
ed6bb24607 refactor: deprecated e_tag and e_tag_global removed from modules and
tests
2021-11-15 17:24:56 +00:00
Simon Kuberski
99d8ee5dd5 Adapted test_total_least_squares 2021-11-15 18:12:49 +01:00
Simon Kuberski
522a1f152a Bugfix in tests, changed output in case of correlated fits 2021-11-15 17:54:04 +01:00
Simon Kuberski
dbe1c26362 Added the possibility to use constrained fit parameters. Added correlated least squares. 2021-11-15 16:39:50 +01:00
Fabian Joswig
e4d7d56180 first version of new bookeeping system 2021-11-01 17:14:30 +00:00
Fabian Joswig
f2a5f12dce documentation of fit functions adjusted, deprecation warnings added to
standard_fit and prior_fit
2021-11-01 14:54:36 +00:00
Fabian Joswig
0e8fc7d36a odr_fit renamed, deprecation warning added
least_squares and total_least_squares are now available to the top level
namespace
2021-11-01 12:01:46 +00:00
Fabian Joswig
d63c749a17 Fit_result gammma_method, str and repr added 2021-10-31 12:00:26 +00:00
Fabian Joswig
b5f3dd6ac3 Benchmarks added 2021-10-26 10:20:47 +01:00
Renamed from tests/test_fits.py (Browse further)