def gauss(dims, sigma):
    x = _dist(dims)
    y = np.exp(-(x / sigma)**2 / 2)
    return y / np.sum(y)
Generate Gaussian function in 2D or 3D.
dataset/ETHPy150Open scikit-beam/scikit-beam/skbeam/core/cdi.py/gauss