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
x0 : float
fwhm : float
|
---|---|
Returns : | f : ndarray
|