fitting.lorentzians_const

fitting.lorentzians_const(x, a, *p)

Sum over variable number of Lorentzians on a constant background.

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

    Coefficients for Lorentzians. For each Lorentzian provide

    • A amplitude,
    • x0 center,
    • dx FWHM.
Returns:

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