torchsig.signals.builders.fm.fm_modulator¶
- torchsig.signals.builders.fm.fm_modulator(bandwidth: float, sample_rate: float, num_samples: int, rng=Generator(PCG64) at 0x7694C485E6C0) ndarray[source]¶
Frequency Modulator (FM).
- Parameters:
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:
FM modulated signal at the appropriate bandwidth.
- Return type:
np.ndarray