All problems
HARQ Chase-Combining Gain
Problem
Return the SNR gain in dB from coherently combining num_copies identical HARQ retransmissions:
gain_db = 10 * log10(num_copies)
Hint
Each doubling of the number of copies adds about 3 dB.
Test cases
case 1
in: [1]
expected: 0
case 2
in: [2]
expected: 3.010299956639812
case 3
in: [4]
expected: 6.020599913279624
case 4
in: [10]
expected: 10
Starter codePython
import math
def harq_combining_gain_db(num_copies):
# Your code here
pass4 test cases · run your code against them in the editor