fitting.voigts_const

fitting.voigts_const(x, a, *p)

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

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

See also

voigts() for more details.