lorentzian

sisl.physics.lorentzian(x, gamma=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 calculated

  • gamma (float, optional) – spread of the Lorentzian

  • x0 (float, optional) – maximum position of the Lorentzian

Returns:

the Lorentzian distribution, same length as x

Return type:

ndarray