get_distribution

sisl.physics.get_distribution(method, smearing=0.1, x0=0.0)

Create a distribution function, Gaussian, Lorentzian etc.

See the details regarding the distributions in their respective documentation.

Parameters:
  • method ({'gaussian', 'lorentzian', 'fermi_dirac', 'bose_einstein', 'step_function', 'heaviside'}) – distribution function

  • smearing (float, optional) – smearing parameter for methods that have a smearing

  • x0 (float, optional) – maximum/middle of the distribution function

Returns:

a function which accepts one argument

Return type:

callable