nmrglue.analysis.lineshapes1d.sim_voigt_fwhm

nmrglue.analysis.lineshapes1d.sim_voigt_fwhm(x, x0, fwhm_g, fwhm_l)[source]

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
xndarray

Array of values at which to evalutate distribution.

x0float

Center of the distribution.

fwhm_gfloat

Full-width at half-maximum of the Gaussian component.

fwhm_lfloat

Full-width at half-maximum of the Lorentzian component.

Returns
fndarray

Distribution evaluated at points in x.