qspec.analyze
The qspec.analyze
module contains general purpose routines for (non)linear data fitting as well as
a convenience class for multidimensional King plots. Wrappers for the
scipy.optimize.curve_fit
and the scipy.odr.odr
routine,
which use least-square optimization and orthogonal distance regression, respectively,
extend their functionality and standardize their syntax. For fitting of a straight line, as needed in King-plots,
the York algorithm
and a Monte-Carlo (MC) method are implemented.
In both cases, also a generalized version is implemented for fitting a straight line to data points
in multiple dimensions, which are distributed according to independent multivariate normal distributions.