diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-08-18 18:06:06 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-08-18 18:06:06 +0200 |
commit | a07f668d588b42cb92651a8ffcdebc5ca0a45af9 (patch) | |
tree | b41a75d30b3fc9428fd0799f71bcf36d07a85727 | |
parent | 8696ebf0d58e0e2b9b362497e6c1b778de4a20b6 (diff) | |
download | dabmod-a07f668d588b42cb92651a8ffcdebc5ca0a45af9.tar.gz dabmod-a07f668d588b42cb92651a8ffcdebc5ca0a45af9.tar.bz2 dabmod-a07f668d588b42cb92651a8ffcdebc5ca0a45af9.zip |
DPDCE: Use conjugate in subsample alignment
-rwxr-xr-x | dpd/src/subsample_align.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dpd/src/subsample_align.py b/dpd/src/subsample_align.py index eda1dce..d90d018 100755 --- a/dpd/src/subsample_align.py +++ b/dpd/src/subsample_align.py @@ -52,7 +52,7 @@ def subsample_align(sig, ref_sig): corr_sig = np.fft.ifft(rotate_vec * fft_sig) - return -np.abs(np.sum(corr_sig * ref_sig)) + return -np.abs(np.sum(np.conj(corr_sig) * ref_sig)) optim_result = optimize.minimize_scalar(correlate_for_delay, bounds=(-1,1), method='bounded', options={'disp': True}) |