nmrglue.analysis.lineshapes1d.sim_gauss_sigma

nmrglue.analysis.lineshapes1d.sim_gauss_sigma(x, x0, sigma)[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. Sigma (the standard deviation of the distribution) is used as the distribution scale parameter.

Functional form:

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

x : ndarray

Array of values at which to evaluate the distribution.

x0 : float

Center (mean) of Gaussian distribution.

sigma : float

Scale (variance) of the Gaussian distribution.

Returns :

f : ndarray

Distribution evaluated at points in x.

Previous topic

nmrglue.analysis.lineshapes1d.sim_pvoigt_fwhm

Next topic

nmrglue.analysis.lineshapes1d.sim_lorentz_gamma

This Page