comnum.css_spectral_lines#

comnum.css_spectral_lines(sf, n_max)#

The lines of the spectrum of LoRa at n B/M, |n| ≤ n_max (Chiani and Elzanaty 2019, eq. (21)); they hold 1/M of the power.

Parameters:
  • sf (int) – spreading factor.

  • n_max (int) – largest index |n| of a line.

Returns:

the frequencies (units of B) and powers.

Return type:

tuple[numpy.ndarray, numpy.ndarray]

Raises:

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