get_distribution

sisl.physics.distribution.get_distribution(method, smearing=0.1, x0=0.0)[source]

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

smearingfloat, optional

smearing parameter for methods that have a smearing

x0float, optional

maximum/middle of the distribution function

Returns
callable

a function which accepts one argument