Fixed signal amplitude necessary for noise amp calculation

This commit is contained in:
Andreas Tsouchlos 2022-11-07 00:43:23 +01:00
parent be6ded2162
commit 01d4cf22aa

View File

@ -76,7 +76,7 @@ def test_decoder(decoder: typing.Any,
# TODO: Is this a valid simulation? Can we just add AWGN to the codeword, ignoring and modulation and (
# e.g. matched) filtering?
y = add_awgn(x, SNR, signal_amp=(1 / np.sqrt(2)))
y = add_awgn(x, SNR, signal_amp=np.sqrt(2))
y_hat = decoder.decode(y)
total_bit_errors += count_bit_errors(c, y_hat)