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