From 01d4cf22aa9efa23b0b39e18bcbdf09f95b1d2f7 Mon Sep 17 00:00:00 2001 From: Andreas Tsouchlos Date: Mon, 7 Nov 2022 00:43:23 +0100 Subject: [PATCH] Fixed signal amplitude necessary for noise amp calculation --- sw/decoders/utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/decoders/utility.py b/sw/decoders/utility.py index 487aec5..fe53519 100644 --- a/sw/decoders/utility.py +++ b/sw/decoders/utility.py @@ -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)