Fixed bug in BER calculation
This commit is contained in:
parent
323b103d6f
commit
dcb78a3963
@ -85,7 +85,7 @@ def test_decoder(encoder: typing.Any,
|
|||||||
y_hat = decoder.decode(y)
|
y_hat = decoder.decode(y)
|
||||||
|
|
||||||
total_bit_errors += count_bit_errors(d, y_hat)
|
total_bit_errors += count_bit_errors(d, y_hat)
|
||||||
total_bits += x.size
|
total_bits += d.size
|
||||||
|
|
||||||
if total_bit_errors >= target_bit_errors:
|
if total_bit_errors >= target_bit_errors:
|
||||||
break
|
break
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user