From 2e5910bebc4470d9779d96a5dfe1fe23744e84e1 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Mon, 16 Mar 2020 17:57:50 +0100 Subject: [PATCH] set history to zero --- cdc.hh | 4 ++++ hilbert.hh | 2 ++ 2 files changed, 6 insertions(+) diff --git a/cdc.hh b/cdc.hh index 466c021..6af4bf6 100644 --- a/cdc.hh +++ b/cdc.hh @@ -30,6 +30,10 @@ public: reco = win((TAPS-1)/2, TAPS) * hbf((TAPS-1)/2, TAPS); for (int i = 0; i < (TAPS-1)/4; ++i) imco[i] = win(2*i+(TAPS-1)/2+1, TAPS) * hbf(2*i+(TAPS-1)/2+1, TAPS); + for (int i = 0; i < (TAPS-1)/4; ++i) + real[i] = 0; + for (int i = 0; i < (TAPS-1)/2; ++i) + imag[i] = 0; } complex_type operator()(value_type in0, value_type in1) { diff --git a/hilbert.hh b/hilbert.hh index 5463c4a..c4113bc 100644 --- a/hilbert.hh +++ b/hilbert.hh @@ -26,6 +26,8 @@ public: reco = win((TAPS-1)/2, TAPS); for (int i = 0; i < (TAPS-1)/4; ++i) imco[i] = win((2*i+1)+(TAPS-1)/2, TAPS) * 2 / ((2*i+1) * Const::Pi()); + for (int i = 0; i < TAPS; ++i) + real[i] = 0; } complex_type operator()(value_type input) {