gaussian

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

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
xarray_like

points at which the Gaussian distribution is calculated

sigmafloat, optional

spread of the Gaussian

x0float, optional

maximum position of the Gaussian

Returns
numpy.ndarray

the Gaussian distribution, same length as x