torchsig.signals.builders.fsk.get_fsk_mod_index¶
- torchsig.signals.builders.fsk.get_fsk_mod_index(fsk_type: str, rng: Generator | None = None) float[source]¶
Determines the modulation index for different FSK variants.
The modulation index is derived from the symbol spacing in the frequency domain. Orthogonal FSK has a modulation index of 1.0, and MSK/GMSK have 0.5.
- Parameters:
fsk_type – Type of FSK modulation (‘fsk’, ‘gfsk’, ‘msk’, ‘gmsk’).
rng – Random number generator for reproducibility. If None, creates a new default generator.
- Returns:
Modulation index.
- Return type:
- Raises:
ValueError – If fsk_type is not one of the supported types.