add_gaussian_noise#

diffsims.pattern.detector_functions.add_gaussian_noise(pattern, sigma, seed=None)[source]#

Applies gaussian noise at each pixel within the pattern

Parameters:
patternnumpy.ndarray

The diffraction pattern at the detector

sigmafloat

The (absolute) deviation of the gaussian errors

seedint or None

seed value for the random number generator

Returns:
corrupted_pattern