nmrglue.analysis.lineshapes1d.sim_gauss_fwhm

nmrglue.analysis.lineshapes1d.sim_gauss_fwhm(x, x0, fwhm)[source]

Simulate a Gaussian (normal) lineshape with unit height at the center.

Simulate discrete points of a continuous Gaussian (normal) distribution with unit height at the center. FWHM (full-width at half-maximum ) is used as the distribution scale parameter.

Functional form:

f(x; x0, fwhm) = exp( -(x - x0)^2 * 4 * ln(2) / (fwhm ^ 2))
Parameters :

x : ndarray

Array of values at which to evaluate distribution.

x0 : float

Center (mean) of Gaussian distribution.

fwhm : float

Full-width at half-maximum of distribution.

Returns :

f : ndarray

Distribution evaluated at points in x.

Previous topic

nmrglue.analysis.lineshapes1d.scale

Next topic

nmrglue.analysis.lineshapes1d.sim_lorentz_fwhm

This Page