Fixed usages of x, x_hat, y
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user