Fixed usages of x, x_hat, y

This commit is contained in:
2022-11-10 09:59:41 +01:00
parent 70bbe08bc4
commit 23e318609c
3 changed files with 9 additions and 9 deletions

View File

@@ -13,7 +13,7 @@ import numpy as np
def _parse_alist_header(header):
size = header.split()
return int(size[0,]), int(size[1])
return int(size[0]), int(size[1])
def read_alist_file(filename):

View File

@@ -54,9 +54,9 @@ def test_decoder(x: np.array,
y = noise.add_awgn(x_bpsk, SNR, signal_amp=np.sqrt(2))
y_hat = decoder.decode(y)
x_hat = decoder.decode(y)
total_bit_errors += count_bit_errors(x, y_hat)
total_bit_errors += count_bit_errors(x, x_hat)
total_bits += x.size
if total_bit_errors >= target_bit_errors: