pink_noise

NoiseGenerator.pink_noise(data_map, magnitude, axis=None)

Adds pink (1/f) noise to data_map.

Parameters:
  • data_map (ndarray[float]) – The data to add noise to.

  • magnitude (float | ndarray[float]) – The standard deviation of the noise at each pixel. Note that pink noise is self-correlated. If an array is passed, it should have the same shape as data_map.

  • axis (int) – Which axis the pink noise should correlated in, or None if the pink noise should be correlated in all directions.

Returns:

data_map with pink noise added to it.

Return type:

ndarray[float]