polynomial_selector#

sionna.phy.fec.conv.utils.polynomial_selector(rate: float, constraint_length: int) Tuple[str, ...][source]#

Returns generator polynomials for given code parameters.

The polynomials are chosen from [Moon] which are tabulated by searching for polynomials with best free distances for a given rate and constraint length.

Parameters:
  • rate (float) – Desired rate of the code. Currently, only r=1/3 and r=1/2 are supported.

  • constraint_length (int) – Desired constraint length of the encoder. Must be between 3 and 8 inclusive.

Outputs:

gen_poly – Tuple of strings with each string being a 0,1 sequence where each polynomial is represented in binary form.

Examples

from sionna.phy.fec.conv import polynomial_selector

gen_poly = polynomial_selector(rate=0.5, constraint_length=5)
print(gen_poly)
# ('10011', '11011')