* fix: corrected bug that prevented combined fits with multiple x-obs in some cases
* made test more complex
* [Fix] Slightly increase tolerance for matrix function test.
* Adapt test_merge_idx to compare lists
---------
Co-authored-by: Simon Kuberski <simon.kuberski@cern.ch>
Co-authored-by: Fabian Joswig <fjosw@users.noreply.github.com>
* feat: corr_matrix kwargs as input for least squares fit
* feat/tests: inverse covariance matrix and correlation matrix kwargs as input for least squares function
* feat/tests/example: reduced new kwargs to 'inv_chol_cov_matrix' and outsourced the inversion & cholesky decomposition of the covariance matrix (function 'invert_corr_cov_cholesky(corr, covdiag)')
* tests: added tests for inv_chol_cov_matrix kwarg for the case of combined fits
* fix: renamed covdiag to inverrdiag needed for the cholesky decomposition and corrected its documentation
* examples: added an example of a correlated combined fit to the least_squares documentation
* feat/tests/fix(of typos): added function 'sort_corr()' (and a test of it) to sort correlation matrix according to a list of alphabetically sorted keys
* docs: added more elaborate documentation/example of sort_corr(), fixed typos in documentation of invert_corr_cov_cholesky()
* feat: matmul method added to correlator class.
* feat: corr, corr matmul and correlator matrix trace added.
* tests: tests for matmul and trace added.
* tests: slightly reduced tolerance and good guess bad guess test.
* feat: rmatmul added and __array_priority__ set.
* tests: additional tests for rmatmul added.
* tests: one more tests for rmatmul added.
* docs: docstring added to Corr.trace.
* tests: associative property test added for complex Corr matmul.
* fix: Corr.roll method now also works for correlator matrices by
explicitly specifying the axis.
Co-authored-by: Matteo Di Carlo <matteo.dicarlo93@gmail.com>
* feat: exception type for correlator trace of 1dim correlator changed.
* tests: trace N=1 exception tested.
---------
Co-authored-by: Matteo Di Carlo <matteo.dicarlo93@gmail.com>
* refactor: merged combined fit and prior fit without breaking the
routine. Fitting with priors does not work yet.
* refactor: correlated fits without priors work now.
* refactor: prior error propagation and dof fixed.
* refactor: old prior fit implementation moved to tests.
* refactor: moved _extract_val_and_dval out of least_squares.
* refactor: comment removed.
* tests: additional tests and exceptions added.
* tests: test for constrained prior fit added.
* docs: least_squares docstring extended.
* fix: linting errors fixed.
* feat: additional if cause for fits without priors added to achieve
original speed.
* tests: test_constrained_and_prior_fit fixed.
* fix: fix array cast of least_squares dict mode.
* tests: test for lists in dict fit added.
* fix: additional asarray added in resplot.
Co-authored-by: Simon Kuberski <simon.kuberski@uni-muenster.de>
* refactor: _standard_fit method made redundant.
* fix: xs and yz in Corr.fit promoted to arrays.
* fix: x promoted to array in _combined_fit if input is just a list.
* feat: residual_plot and qqplot now work with combined fits with
dictionary inputs.
* tests: test for combined fit resplot and qqplot added.
* docs: docstring of fits.residual_plot extended.
is ill conditioned with respect to the machine precision.
Criterion for warning for ill-conditioned covariance matrix changed to cond > sqrt(eps)
Test added.