lorentzian
- sisl.physics.lorentzian(x, gamma: float = 0.1, x0=0.0)
Lorentzian distribution function
\[L(x,\gamma,x_0) = \frac1\pi\frac{\gamma}{(x-x_0)^2 + \gamma^2}\]- Parameters:
x (
array_like
) – points at which the Lorentzian distribution is calculatedgamma – spread of the Lorentzian
x0 (
array_like
, optional) – maximum position of the Lorentzian
- Returns:
numpy.ndarray
– the Lorentzian distribution, same length as x