lorentzian

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

Lorentzian distribution function

L(x,γ,x0)=1πγ(xx0)2+γ2
Parameters:
  • x (ArrayLike) – points at which the Lorentzian distribution is calculated

  • gamma (float) – spread of the Lorentzian

  • x0 (float | ArrayLike) – maximum position of the Lorentzian

Returns:

the Lorentzian distribution, same length as x

Return type:

numpy.ndarray