ptypy.utils.math_utils.gaussian#

ptypy.utils.math_utils.gaussian(x, std=1.0, off=0.0)#

Evaluates gaussian standard normal

\[g(x)=\frac{1}{\mathrm{std}\sqrt{2\pi}}\,\exp \left(-\frac{(x-\mathrm{off})^2}{2 \mathrm{std}^2 }\right)\]
Parameters:
  • x (ndarray) – input array

  • std (float,optional) – Standard deviation

  • off (float, optional) – Offset / shift