From 9ce1b56ee230bb91968a321dc5eda0349cc12c42 Mon Sep 17 00:00:00 2001 From: Zilog80 Date: Wed, 2 Dec 2015 14:58:04 +0100 Subject: [PATCH] swap(IQ) <-> conj(IQ) --- iq/shift_IQ.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iq/shift_IQ.c b/iq/shift_IQ.c index dfde27e..2a5a03f 100644 --- a/iq/shift_IQ.c +++ b/iq/shift_IQ.c @@ -155,8 +155,8 @@ int main(int argc, char *argv[]) { if (read_csample(fp, &z) == EOF) break; if (swap) { // swap IQ - w = cimag(z) + I*creal(z); // = cexp(-I*PI/2) * conj(z); - + w = cimag(z) + I*creal(z); // = cexp(I*PI/2) * conj(z) = I * conj(z); + // W(f) = Z(-f); fuer Spiegelung reicht: w = conj(z) } else { // translate t = (double)sample / sample_rate;