comnum.theory_biawgn_capacity#

comnum.theory_biawgn_capacity(ebn0_db, rate)#

Capacity of the binary-input AWGN channel for a code rate (the noise variance is 1/(2 R Eb/N0)).

Parameters:
  • ebn0_db (float | array_like) – Eb/N0 (dB).

  • rate (float) – the code rate R.

Returns:

the capacity (bits per channel use) at every Eb/N0.

Return type:

float | numpy.ndarray

Raises:

ValueError – for values that are not real numbers.

Examples

>>> import comnum
>>> round(comnum.theory_biawgn_capacity(comnum.theory_shannon_limit_ebn0_db(0.5), 0.5), 6)
0.5