torchsig.signals.builders.lfm.lfm_modulator_baseband

torchsig.signals.builders.lfm.lfm_modulator_baseband(lfm_type: str, max_num_samples: int, oversampling_rate_nominal: int, rng: Generator | None = None) ndarray[source]

LFM modulator at baseband.

Parameters:
  • lfm_type – Type of LFM signal (‘data’ or ‘radar’).

  • max_num_samples – Maximum number of samples to produce.

  • oversampling_rate_nominal – Oversampling rate (sampling_rate/bandwidth).

  • rng – Random number generator for reproducibility. If None, creates a new default generator.

Returns:

LFM modulated signal at baseband.

Return type:

np.ndarray

Raises:
  • ValueError – If max_num_samples or oversampling_rate_nominal are not positive.

  • ValueError – If lfm_type is not one of the supported types.