gaussian

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

Gaussian distribution function

G(x,σ,x0)=12πσ2exp[(xx0)22σ2]
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