nmrglue.analysis.lineshapes1d.sim_lorentz_fwhm
- nmrglue.analysis.lineshapes1d.sim_lorentz_fwhm(x, x0, fwhm)[source]
Simulate a Lorentzian lineshape with unit height at the center.
Simulates discrete points of the continuous Cauchy-Lorentz (Breit-Wigner) distribution with unit height at the center. FWHM (full-width at half-maximum) is used as the scale parameter.
Functional form:
f(x; x0, fwhm) = (0.5 * fwhm)^2 / ((x-x0)^2 + (0.5 * fwhm)^2)
- Parameters
- xndarray
Array of values at which to evaluate distribution.
- x0float
Center of the distribution.
- fwhmfloat
Full-width at half-maximum of distribution.
- Returns
- fndarray
Distribution evaluated at points in x.