fitting.displorentzians_line

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

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

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