scale coefficients by interpolation factor

master
Ahmet Inan 2012-09-15 07:18:44 +02:00
rodzic 13420ca857
commit 25adda3d8c
1 zmienionych plików z 1 dodań i 1 usunięć

2
ddc.c
Wyświetl plik

@ -54,7 +54,7 @@ struct ddc *alloc_ddc(int L, int M, float carrier, float bw, float rate, int tap
float t = w * h;
sum += t;
complex float o = cexpf(I * 2.0 * M_PI * carrier * lstep * n);
b[i] = t * o;
b[i] = t * o * (float)L;
}
for (int i = 0; i < taps; i++)
b[i] /= sum;