comnum.nr_numerology#

comnum.nr_numerology(mu, *, extended_cp=False, n_fft=2048)#

The numerology mu of NR (the subcarrier spacing 2^mu · 15 kHz; mu = 0 is also the numerology of LTE).

Parameters:
  • mu (int) – 0 to 4.

  • extended_cp (bool) – the extended cyclic prefix (mu = 2, or LTE with mu = 0).

  • n_fft (int) – the FFT size of the sampling rate and the prefixes (a multiple of 128).

Returns:

subcarrier_spacing_hz, slots_per_subframe, slots_per_frame, symbols_per_slot, sample_rate (Hz), cp_lengths (samples, the symbols of one subframe).

Return type:

dict

Raises:

ValueError – for an invalid parameter (the message names it).

Examples

>>> import comnum
>>> info = comnum.nr_numerology(0, n_fft=2048)   # LTE: 30.72 MS/s
>>> info["sample_rate"], info["cp_lengths"][:2].tolist()
(30720000.0, [160, 144])