Fixed signal amplitude necessary for noise amp calculation
This commit is contained in:
parent
be6ded2162
commit
01d4cf22aa
@ -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 (
|
# TODO: Is this a valid simulation? Can we just add AWGN to the codeword, ignoring and modulation and (
|
||||||
# e.g. matched) filtering?
|
# 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)
|
y_hat = decoder.decode(y)
|
||||||
|
|
||||||
total_bit_errors += count_bit_errors(c, y_hat)
|
total_bit_errors += count_bit_errors(c, y_hat)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user