23{
24 float coeffs_lpf[5] = {0.073802, 0.147603, 0.073802, -1.250516, 0.545723};
25 float w_lpf[5] = {0, 0};
26 float w_lpf_ref[5] = {0, 0};
28
29 for (
size_t i = 0; i <
N; i++) {
31 }
37 printf("dsps_biquad_f32 error = %i\n", ret);
38 return;
39 }
44 printf("dsps_biquad_f32 error = %i\n", ret);
45 return;
46 }
47 for (
size_t i = 0; i <
N; i++) {
48 if (((
y[i] -
y_ref[i]) > 0.0000001) || (
y[i] -
y_ref[i]) < -0.0000001) {
49 printf(
"ERROR result[%i]: %f, expect = %f, diff=%f\n", i,
y[i],
y_ref[i],
y[i] -
y_ref[i]);
50 return;
51
52 }
53 }
54 printf("Test Correct!\n");
55
56}
esp_err_t dsps_biquad_f32_ansi(const float *input, float *output, int len, float *coef, float *w)
IIR filter.
void xt_iss_profile_disable()
esp_err_t dsps_biquad_f32_aes3(const float *input, float *output, int len, float *coef, float *w)
void xt_iss_profile_enable()