lorentzian

sisl.physics.lorentzian(x, gamma=0.1, x0=0.0)[source]

Lorentzian distribution function

\[L(x,\gamma,x_0) = \frac{1}{\pi}\frac{\gamma}{(x-x_0)^2 + \gamma^2}\]
Parameters:
x: array_like

points at which the Lorentzian distribution is calculated

gamma: float, optional

spread of the Lorentzian

x0: float, optional

maximum position of the Lorentzian

Returns:
numpy.ndarray

the Lorentzian distribution, same length as x