mirror of
https://github.com/aicodix/dsp.git
synced 2026-04-27 14:30:36 +00:00
set history to zero
This commit is contained in:
parent
6528c1581d
commit
2e5910bebc
2 changed files with 6 additions and 0 deletions
4
cdc.hh
4
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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<value_type>::Pi());
|
||||
for (int i = 0; i < TAPS; ++i)
|
||||
real[i] = 0;
|
||||
}
|
||||
complex_type operator()(value_type input)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue