fitting.voigts_cubic

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

Sum over variable number of approximate Voigt profiles on a cubic background.

Parameters:
  • x (array) – x-values.
  • a (float) – Offset.
  • b (float) – Linear term.
  • c (float) – Quadratic term.
  • d (float) – Cubic 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.

See also

voigts() for more details.