add_linear_detector_gain#

diffsims.pattern.detector_functions.add_linear_detector_gain(pattern, gain)[source]#

Multiplies the pattern by a gain (which is not a function of the pattern)

Parameters:
patternnumpy.ndarray

The diffraction pattern at the detector

gainfloat or numpy.ndarray

Multiplied through the pattern, broadcasting applies

Returns
——-
corrupted_patternnumpy.ndarray

The pattern, with gain applied