Simulate a Pseudo Voigt lineshape with unit height at the center.
Simulates discrete points of the continuous Pseudo Voigt profile with unit heigh at the center. Full-width at half-maximum (FWHM) of the Gaussian and Lorentzian distribution are used as the scale parameter as well as eta, the mixing factor.
Functional Form:
f(x; x0, fwhm, eta) = (1-eta) * G(x; x0, fwhm) + eta * L(x; x0, fwhm)
Where:
G(x; x0, fwhm) = exp( -(x-x0)^2 * 4 * ln(2) / (fwhm^2)) L(x; x0, fwhm) = (0.5 * fwhm)^2 / ((x-x0)^2 + (0.5 * fwhm)^2)
Parameters : | x : ndarray
x0 : float
fwhm : float
eta : float
|
---|---|
Returns : | f : ndarray
|