gauss#

radiosim.utils.gauss.gauss(params: list, size: int) ndarray[source]#

Returns a 2d gaussian distribution. Creates a gaussian in the center with twice the image size and then cuts out the correct position. Pro: Easy to understand and maintain Con: Slower than twodgaussian; maybe faster, if the cutout could be removed

Parameters:
params: list

[amplitude, center_x, center_y, width_x, width_y, rot] (rot (rotation) in radian)

shape: int

length of the image

Returns:
gaussian_scaled: 2darray

gaussian distribution in two dimensions