fitting.voigt

fitting.voigt(x, A, x0, dx, a)

Approximation to a Voigt profile based on a weighted sum of a Gaussian and a Lorentzian with the same parameters.

Parameters:
  • x (array) – x-values.
  • A (float) – Amplitude.
  • x0 (float) – Center.
  • dx (float) – FWHM.
  • a (float) – Relative weight of Lorentzian vs. Gaussian (0 = Gaussian, 1 = Lorentzian).
Returns:

f(x) = \alpha L(x) + (1 - \alpha) G(x).