triqs.fit.fit

Least-squares fit of a parametric model to 1D data.

Provides Fit, a thin wrapper around scipy.optimize.leastsq(), together with two ready-made model tuples linear and quadratic that can be passed directly as the fitter argument.

Module Attributes

linear

Linear-model fitter \(y = a\,x + b\).

quadratic

Quadratic-model fitter \(y = a\,x^2 + b\,x + c\).

Classes

Fit(x_array, y_array, fitter[, p0])

Least-squares fit of a parametric model to 1D data.