lorentzian

sisl.physics.distribution.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
xarray_like

points at which the Lorentzian distribution is calculated

gammafloat, optional

spread of the Lorentzian

x0float, optional

maximum position of the Lorentzian

Returns
numpy.ndarray

the Lorentzian distribution, same length as x