diff options
author | andreas128 <Andreas> | 2017-08-19 17:38:33 +0200 |
---|---|---|
committer | andreas128 <Andreas> | 2017-08-19 17:38:33 +0200 |
commit | a11b8c5b13654d69286c6661b4e5eee2d7b0cc59 (patch) | |
tree | 1c6a3fad617e60ca6bc4783df6a537f35e01f6fa /dpd | |
parent | c129deaf0947ce955b69fe40544a5408e1e2fdc7 (diff) | |
download | dabmod-a11b8c5b13654d69286c6661b4e5eee2d7b0cc59.tar.gz dabmod-a11b8c5b13654d69286c6661b4e5eee2d7b0cc59.tar.bz2 dabmod-a11b8c5b13654d69286c6661b4e5eee2d7b0cc59.zip |
Fix normalization to median of tx
Diffstat (limited to 'dpd')
-rw-r--r-- | dpd/src/Measure.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dpd/src/Measure.py b/dpd/src/Measure.py index 5872bda..e9493fa 100644 --- a/dpd/src/Measure.py +++ b/dpd/src/Measure.py @@ -80,8 +80,8 @@ class Measure: else: rxframe = np.array([], dtype=np.complex64) - txframe = txframe / np.median(np.abs(txframe)) - rxframe = rxframe / np.median(np.abs(rxframe)) + # Normalize received signal with sent signal + rxframe = rxframe / np.median(np.abs(rxframe)) * np.median(np.abs(txframe)) if logging.getLogger().getEffectiveLevel() == logging.DEBUG: txframe_path = ('/tmp/txframe_fft_' + |