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 (Literal['gaussian', 'lorentzian', 'fermi', 'bose-einstein', 'cold', 'step-function', 'heaviside']) – distribution function
smearing (float) – smearing parameter for methods that have a smearing
x0 (float | TypeAliasForwardRef('~numpy.typing.ArrayLike')) – maximum/middle of the distribution function
- Returns:
a function which accepts one argument
- Return type:
callable