diff options
author | andreas128 <Andreas> | 2017-08-11 19:08:55 +0200 |
---|---|---|
committer | andreas128 <Andreas> | 2017-08-11 19:08:55 +0200 |
commit | bc395ef1e3ec5ab3df17f6aa16b3ac0a39188a1e (patch) | |
tree | 209955d872753be486e17fa2c8562cc0b2c4c544 /dpd/src/Dab_Util.py | |
parent | f0ee9fc26be33ee4dd5fe368deab7d44af306aa2 (diff) | |
download | dabmod-bc395ef1e3ec5ab3df17f6aa16b3ac0a39188a1e.tar.gz dabmod-bc395ef1e3ec5ab3df17f6aa16b3ac0a39188a1e.tar.bz2 dabmod-bc395ef1e3ec5ab3df17f6aa16b3ac0a39188a1e.zip |
Fix correlation for complex signal
Diffstat (limited to 'dpd/src/Dab_Util.py')
-rw-r--r-- | dpd/src/Dab_Util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dpd/src/Dab_Util.py b/dpd/src/Dab_Util.py index 0da7343..aee66d2 100644 --- a/dpd/src/Dab_Util.py +++ b/dpd/src/Dab_Util.py @@ -27,7 +27,7 @@ class Dab_Util: sig_rec: The signal that has been recored """ off = sig_rec.shape[0] - c = signal.correlate(sig_orig, sig_rec) + c = np.abs(signal.correlate(sig_orig, sig_rec)) return np.argmax(c) - off + 1 def lag_upsampling(self, sig_orig, sig_rec, n_up): |