gaussian

sisl.physics.gaussian(x, sigma=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 (ndarray) – points at which the Gaussian distribution is calculated

  • sigma (float) – spread of the Gaussian

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

Returns:

the Gaussian distribution, same length as x

Return type:

numpy.ndarray