fitting.voigts_quartic

fitting.voigts_quartic(x, a, b, c, d, e, *p)

Sum over variable number of approximate Voigt profiles 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 Voigt profiles. For each Voigt profile provide

    • A amplitude,
    • x0 center,
    • dx FWHM,
    • a relative weight of Lorentzian vs. Gaussian.
Returns:

Sum over Voigt profiles f(x) = \sum_i V_i(x) + a + b x + c x^2 + d x^3 + e x^4.

See also

voigts() for more details.