fix training scaling factor

This commit is contained in:
Roman Zeyde
2014-07-12 10:02:12 +03:00
parent 8c0f19d0d5
commit 895f50ff6f
2 changed files with 8 additions and 9 deletions

View File

@@ -7,14 +7,14 @@ log = logging.getLogger(__name__)
Fs = 32e3
Ts = 1.0 / Fs
frequencies = (1 + np.arange(1)) * 1e3
frequencies = (1 + np.arange(2)) * 1e3
carrier_index = 0
Fc = frequencies[carrier_index]
Tc = 1.0 / Fc
symbols = np.array([complex(x, y)
for x in np.linspace(-1, 1, 4)
for y in np.linspace(-1, 1, 4)]) / np.sqrt(2)
for x in np.linspace(-1, 1, 8)
for y in np.linspace(-1, 1, 8)]) / np.sqrt(2)
Tsym = 1e-3
Nsym = int(Tsym / Ts)