Fixed bug in BER calculation

This commit is contained in:
Andreas Tsouchlos 2022-11-07 14:08:05 +01:00
parent 323b103d6f
commit dcb78a3963

View File

@ -85,7 +85,7 @@ def test_decoder(encoder: typing.Any,
y_hat = decoder.decode(y)
total_bit_errors += count_bit_errors(d, y_hat)
total_bits += x.size
total_bits += d.size
if total_bit_errors >= target_bit_errors:
break