fitting.lorentzians

fitting.lorentzians(x, *p)

Sum over variable number of Lorentzians without baseline.

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