gaussian

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

Gaussian distribution function

\[G(x,\sigma,x_0) = \frac{1}{\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 (float, optional) – spread of the Gaussian

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

Returns

the Gaussian distribution, same length as x

Return type

numpy.ndarray