bilby.core.utils.series.safe_white_noise
- bilby.core.utils.series.safe_white_noise(number_of_samples: int, duration: float, *, random_state=None)[source]
A JIT-compilable function to generate white noise in the frequency domain.
- Parameters:
- number_of_samples: int
The number of samples in the time domain.
- duration: float
The duration of the time series.
- random_state: None, int, np.random.Generator, or jax.random.KeyArray
The random state to use for noise generation.
- Returns:
- white_noise: array_like
The generated complex white noise in the frequency domain.
- frequencies: array_like
The corresponding frequency array for the white noise.