ptypy.utils.math_utils.gaussian2D#
- ptypy.utils.math_utils.gaussian2D(size, std_x=1.0, std_y=1.0, off_x=0.0, off_y=0.0)#
Evaluates normalized 2D gaussian on array of dimension size. Origin of coordinate system is in the center of the array.
- Parameters:
size (int) – length of requested array
std_x (float,optional) – Standard deviation in x direction
std_y (float,optional) – Standard deviation in y direction
off_x (float, optional) – Offset / shift in x direction
off_y (float, optional) – Offset / shift in y direction