sdr.ebn0_to_esn0(ebn0: ArrayLike, bps: ArrayLike, rate: ArrayLike = 1.0) NDArray[float64]

Converts from \(E_b/N_0\) to \(E_s/N_0\).

\[ \frac{E_s}{N_0} = \frac{E_b}{N_0} \frac{k}{n} \log_2 M \]

Parameters:
ebn0: ArrayLike

Bit energy \(E_b\) to noise PSD \(N_0\) ratio in dB.

bps: ArrayLike

Coded bits per symbol \(\log_2 M\), where \(M\) is the modulation order.

rate: ArrayLike = 1.0

Code rate \(r = k/n\), where \(k\) is the number of information bits and \(n\) is the number of coded bits.

Returns:

The symbol energy \(E_s\) to noise PSD \(N_0\) ratio in dB.

Examples

Convert from \(E_b/N_0 = 5\) dB to \(E_s/N_0\) for a 4-QAM signal with \(r = 2/3\).

In [1]: sdr.ebn0_to_esn0(5, 2, rate=2/3)
Out[1]: 6.249387366082999

Convert from \(E_b/N_0 = 10\) dB to \(E_s/N_0\) for a 16-QAM signal with \(r = 1\).

In [2]: sdr.ebn0_to_esn0(10, 4, rate=1)
Out[2]: 16.020599913279625