sage.data.noise.white_noise
Filename : white_noise.py Description : White Gaussian noise generators for pipeline testing.
Created on 2026-01-19 16:18:49
__author__ = Narenraju Nagarajan __copyright__ = Copyright 2026, Sage __license__ = MIT Licence __version__ = 0.0.1 __maintainer__ = Narenraju Nagarajan __email__ = N/A __status__ = [‘inProgress’, ‘Archived’, ‘inUsage’, ‘Debugging’]
GitHub Repository: NULL
Documentation: NULL
Classes
Generate independent white Gaussian noise for each detector. |
|
Batch white Gaussian noise sampler for pipeline development and testing. |
Module Contents
- class WhiteNoiseGenerator[source]
Generate independent white Gaussian noise for each detector.
Produces zero-mean, unit-variance Gaussian noise with independent seeds per detector. Primarily used for controlled testing and as a substitute for real noise during pipeline development or unit tests.
- class WhiteGaussianNoiseSampler(seed=None)[source]
Bases:
torch.nn.ModuleBatch white Gaussian noise sampler for pipeline development and testing.
Generates independent zero-mean unit-variance Gaussian noise in the time domain per detector, converts to the frequency domain via rfft (
norm='forward'), and returns a GPU-resident FD_UNIFORM batch that mirrors theMemmapNoiseSamplerAPI.The returned noise is
(B, D, F)complex, ready to be combined with signal batches and passed throughFiducialWhitening. When the signal sampler uses worst-case multibanding, the training loop’s auto-multibanding selector converts this to FD_COARSE automatically before injection.- Parameters:
seed (int or None) – Seed for the internal NumPy RNG (for reproducibility).
- Initialize internal Module state, shared by both nn.Module and ScriptModule.