comnum.css_occupied_bandwidth#

comnum.css_occupied_bandwidth(sf, fraction=0.99, span=3.0)#

The band (units of B) that holds fraction of the power of LoRa (Chiani and Elzanaty 2019, Table I, B99).

Parameters:
  • sf (int) – spreading factor.

  • fraction (float) – fraction of the power.

  • span (float) – half-width (units of B) of the computed spectrum.

Returns:

the band in units of B.

Return type:

float

Raises:

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

Examples

>>> import comnum
>>> round(comnum.css_occupied_bandwidth(5), 2)
1.18