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’}
distribution function
- smearing: float, optional
smearing parameter for the method (\(\sigma\) for Gaussian, \(\gamma\) for Lorenztian etc.)
- x0: float, optional
maximum of the distribution function
Returns: - callable
a function which accepts one argument