From a07f668d588b42cb92651a8ffcdebc5ca0a45af9 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 18 Aug 2017 18:06:06 +0200 Subject: DPDCE: Use conjugate in subsample alignment --- dpd/src/subsample_align.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}) -- cgit v1.2.3