torchsig.signals.builders.am.am_modulator

torchsig.signals.builders.am.am_modulator(class_name: str, bandwidth: float, sample_rate: float, num_samples: int, rng=Generator(PCG64) at 0x7694C485E960) ndarray[source]

Amplitude Modulator (AM).

Parameters:
  • class_name (str) – Name of the signal to modulate, ex: ‘am-dsb’.

  • bandwidth (float) – The desired 3 dB bandwidth of the signal. Must be in the same units as sample_rate and within the bounds 0 < bandwidth < sample_rate.

  • sample_rate (float) – The sampling rate for the IQ signal. The sample rate can use a normalized value of 1, or it can use a practical sample rate such as 10 MHz. However, it must use the same units as the bandwidth parameter.

  • num_samples (int) – The number of IQ samples to produce.

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

Returns:

AM modulated signal at the appropriate bandwidth.

Return type:

np.ndarray