torchsig.signals.builders.fsk.fsk_modulator

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

FSK modulator.

Parameters:
  • class_name (str) – The modulation to create, ex: ‘2fsk’.

  • 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:

FSK modulated at the appropriate bandwidth.

Return type:

np.ndarray