gaussian

sisl.physics.gaussian(x, sigma: float = 0.1, x0=0.0)

Gaussian distribution function

\[G(x,\sigma,x_0) = \frac1{\sqrt{2\pi\sigma^2}}\exp\Big[\frac{- (x - x_0)^2}{2\sigma^2}\Big]\]
Parameters:
  • x (array_like) – points at which the Gaussian distribution is calculated

  • sigma – spread of the Gaussian

  • x0 (array_like, optional) – maximum position of the Gaussian

Returns:

numpy.ndarray – the Gaussian distribution, same length as x