fitting.displorentzians_const

fitting.displorentzians_const(x, a, *p)

A sum over a variable number of dispersive Lorentzians on a constant background.

Parameters:
  • x (array) – x-values.
  • a (float) – Offset.
  • p (variable) –

    Coefficients for dispersive Lorentzians. For each Lorentzian provide

    • A amplitude of real part,
    • B amplitude of dispersive part,
    • x0 center,
    • dx FWHM.
Returns:

Sum over dispersive Lorentzians f(x) = \sum_i L_i(x) + a.