mag = (gdouble) out[i].r * (gdouble) out[i].r;
mag += (gdouble) out[i].i * (gdouble) out[i].i;
- mag *= 2048.0;
mag /= 32767.0 * 32767.0;
mag = 10.0 * log10 (mag);
if (i < 2)
mag = (gdouble) out[i].r * (gdouble) out[i].r;
mag += (gdouble) out[i].i * (gdouble) out[i].i;
- mag *= 2048.0;
mag /= 32767.0 * 32767.0;
mag = 10.0 * log10 (mag);
if (abs (512 - i) < 2)
- fail_unless (mag > -15.0);
+ fail_unless (mag > -20.0);
else
fail_unless (mag < -55.0);
}
mag = (gdouble) out[i].r * (gdouble) out[i].r;
mag += (gdouble) out[i].i * (gdouble) out[i].i;
- mag *= 2048.0;
mag /= 32767.0 * 32767.0;
mag = 10.0 * log10 (mag);
mag = (gdouble) out[i].r * (gdouble) out[i].r;
mag += (gdouble) out[i].i * (gdouble) out[i].i;
- mag *= 2048.0;
mag /= 2147483647.0 * 2147483647.0;
mag = 10.0 * log10 (mag);
mag = (gdouble) out[i].r * (gdouble) out[i].r;
mag += (gdouble) out[i].i * (gdouble) out[i].i;
- mag *= 2048.0;
mag /= 2147483647.0 * 2147483647.0;
mag = 10.0 * log10 (mag);
if (abs (512 - i) < 2)
- fail_unless (mag > -15.0);
+ fail_unless (mag > -20.0);
else
fail_unless (mag < -60.0);
}
mag = (gdouble) out[i].r * (gdouble) out[i].r;
mag += (gdouble) out[i].i * (gdouble) out[i].i;
- mag *= 2048.0;
mag /= 2147483647.0 * 2147483647.0;
mag = 10.0 * log10 (mag);
mag = (gdouble) out[i].r * (gdouble) out[i].r;
mag += (gdouble) out[i].i * (gdouble) out[i].i;
- mag /= 2048.0;
+ mag /= 2048.0 * 2048.0;
mag = 10.0 * log10 (mag);
if (i < 2)
mag = (gdouble) out[i].r * (gdouble) out[i].r;
mag += (gdouble) out[i].i * (gdouble) out[i].i;
- mag /= 2048.0;
+ mag /= 2048.0 * 2048.0;
mag = 10.0 * log10 (mag);
if (abs (512 - i) < 2)
- fail_unless (mag > -15.0);
+ fail_unless (mag > -20.0);
else
fail_unless (mag < -60.0);
}
mag = (gdouble) out[i].r * (gdouble) out[i].r;
mag += (gdouble) out[i].i * (gdouble) out[i].i;
- mag /= 2048.0;
+ mag /= 2048.0 * 2048.0;
mag = 10.0 * log10 (mag);
if (i > 1022)
mag = (gdouble) out[i].r * (gdouble) out[i].r;
mag += (gdouble) out[i].i * (gdouble) out[i].i;
- mag /= 2048.0;
+ mag /= 2048.0 * 2048.0;
mag = 10.0 * log10 (mag);
if (i < 2)
mag = (gdouble) out[i].r * (gdouble) out[i].r;
mag += (gdouble) out[i].i * (gdouble) out[i].i;
- mag /= 2048.0;
+ mag /= 2048.0 * 2048.0;
mag = 10.0 * log10 (mag);
if (abs (512 - i) < 2)
- fail_unless (mag > -15.0);
+ fail_unless (mag > -20.0);
else
fail_unless (mag < -60.0);
}
mag = (gdouble) out[i].r * (gdouble) out[i].r;
mag += (gdouble) out[i].i * (gdouble) out[i].i;
- mag /= 2048.0;
+ mag /= 2048.0 * 2048.0;
mag = 10.0 * log10 (mag);
if (i > 1022)