torchsig.signals.builders.test.shaped_noise_modulator

torchsig.signals.builders.test.shaped_noise_modulator(bandwidth: float, sample_rate: float, num_samples: int, rng=Generator(PCG64) at 0x7694C485E420) ndarray[source]

Implements a shaped noise modulator for testing and development.

Parameters:
  • bandwidth (float) – the desired 3 dB bandwidth of the signal

  • signal_power_db (float) – the desired power of the signal in dB

  • sample_rate (float) – the sample rate (must align with CF and BW values)

  • num_samples (float) – number of samples of shaped noise to create

  • rng (optional) – Seedable random number generator for reproducibility.

Returns:

Shaped noise IQ samples with proper bandwidth and center frequency.

Return type:

np.ndarray