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 :

x : ndarray

Array of values at which to evalutate distribution.

x0 : float

Center of the distribution.

fwhm_g : float

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

fwhm_l : float

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

Returns :

f : ndarray

Distribution evaluated at points in x.

Previous topic

nmrglue.analysis.lineshapes1d.sim_lorentz_fwhm

Next topic

nmrglue.analysis.lineshapes1d.sim_pvoigt_fwhm

This Page