kopia lustrzana https://github.com/xdsopl/robot36
scale coefficients by interpolation factor
rodzic
13420ca857
commit
25adda3d8c
2
ddc.c
2
ddc.c
|
@ -54,7 +54,7 @@ struct ddc *alloc_ddc(int L, int M, float carrier, float bw, float rate, int tap
|
||||||
float t = w * h;
|
float t = w * h;
|
||||||
sum += t;
|
sum += t;
|
||||||
complex float o = cexpf(I * 2.0 * M_PI * carrier * lstep * n);
|
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++)
|
for (int i = 0; i < taps; i++)
|
||||||
b[i] /= sum;
|
b[i] /= sum;
|
||||||
|
|
Ładowanie…
Reference in New Issue