white_noise
- NoiseGenerator.white_noise(data_map, magnitude)
Adds white noise to
data_map.- Parameters:
data_map (ndarray[float]) – The data to add noise to.
magnitude (float | ndarray[float]) – The standard deviation of the gaussian distribution from which to draw the noise at each pixel. If an array is passed, it should have the same shape as
data_map.
- Returns:
data_mapwith white noise added to it.- Return type:
ndarray[float]