fitting.voigts_line

fitting.voigts_line(x, a, b, *p)

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

Parameters:
  • x (array) – x-values.
  • a (float) – y-intercept.
  • b (float) – Slope.
  • 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.

See also

voigts() for more details.