torchsig.transforms.functional.additive_noise

torchsig.transforms.functional.additive_noise(data: ~numpy.ndarray, power: float = 1.0, color: str = 'white', continuous: bool = True, rng: ~numpy.random._generator.Generator = Generator(PCG64) at 0x7694D3FA58C0) ndarray[source]

Additive complex noise with specified parameters.

Parameters:
  • data (np.ndarray) – Complex valued IQ data samples.

  • power (float) – Desired noise power (linear, positive). Defaults to 1.0 W (0 dBW).

  • color (str) – Noise color, supports ‘white’, ‘pink’, or ‘red’ noise frequency spectrum types. Defaults to ‘white’.

  • continuous (bool) – Sets noise to continuous (True) or impulsive (False). Defaults to True.

  • rng (np.random.Generator, optional) – Random number generator. Defaults to np.random.default_rng(seed=None).

Returns:

Data with complex noise samples with specified power added.

Return type:

np.ndarray