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. Gamma (the half-width at half-maximum, HWHM) is used as the scale parameter.
Functional form:
f(x; x0, gamma) = g ^ 2 / ((x-x0) ^ 2 + g ^ 2)
Parameters : | x : ndarray
x0 : float
gamma : float
|
---|---|
Returns : | f : ndarray
|