fitting.lorentzians_quartic¶
-
fitting.
lorentzians_quartic
(x, a, b, c, d, e, *p)¶ Sum over variable number of Lorentzians on a quartic background.
Parameters: - x (array) – x-values.
- a (float) – Offset.
- b (float) – Linear term.
- c (float) – Quadratic term.
- d (float) – Cubic term.
- e (float) – Quartic term.
- p (variable) –
Coefficients for Lorentzians. For each Lorentzian provide
- A amplitude,
- x0 center,
- dx FWHM.
Returns: Sum over Lorentzians .