Skip to content
DeepForgeby svx
All problems
EasyInformation Theoryinfo-193

Eb/N0 to SNR

Problem

Convert Eb/N0 in decibels to the SNR in decibels for a given spectral efficiency (bits per symbol):

SNR_dB = Eb/N0_dB + 10 * log10(rate)

Hint

SNR scales with the bit rate, so a factor of two costs about 3 dB.

Test cases

case 1
in: [0,1]
expected: 0
case 2
in: [10,0.5]
expected: 6.9897000433601875
case 3
in: [3,0.25]
expected: -3.020599913279624
case 4
in: [6,2]
expected: 9.010299956639813
Starter codePython
import math
def ebn0_to_snr_db(ebn0_db, rate):
    # Your code here
    pass

4 test cases · run your code against them in the editor