Simulate a Voigt lineshape with unit height at the center.
Simulates discrete points of the continuous Voigt profile with unit height at the center. Full-width at half-maximum (FWHM) of each component are used as the scale parameters for the Gaussian and Lorentzian distribution.
Functional Form:
f(x; x0, fwhm_g, fwhm_l) = Re[w(z)] / Re[(w(z0)]
Where:
z = sqrt(ln(2)) * (2 * (x - x0) + 1j * fwhm_l) / fwhm_g z0 = sqrt(ln(2)) * 1j * fwhm_l / fwhm_g w(z) is the complex error function of z
Parameters : | x : ndarray
x0 : float
fwhm_g : float
fwhm_l : float
|
---|---|
Returns : | f : ndarray
|