5 int main(int argc
, char *argv
[]) // NOLINT(misc-definitions-in-headers)
7 main_init(argc
, argv
, 1);
8 a_hpf ctx
= A_HPF_INIT(A_HPF_GEN(10, 0.01));
9 a_hpf_init(&ctx
, a_hpf_gen(10, A_FLOAT_C(0.01)));
10 a_float Ts
= A_FLOAT_C(1.0);
11 a_float f_0
= A_FLOAT_C(1.0);
12 a_float f_e
= A_FLOAT_C(1000.0);
13 a_float c
= (f_e
- f_0
) / Ts
;
14 a_float T
= A_FLOAT_C(1.0) / 10000;
15 for (a_float x
= 0; x
< Ts
; x
+= T
) // NOLINT
17 a_float x1
= a_float_cos(A_FLOAT_TAU
* (f_0
* x
+ A_FLOAT_C(0.5) * c
* x
* x
) + 0);
18 a_float x2
= a_hpf_iter(&ctx
, x1
);
19 debug(A_FLOAT_PRI("+", "f,") A_FLOAT_PRI("+", "f,") A_FLOAT_PRI("+", "f\n"), x
, x1
, x2
);
22 #if defined(__cplusplus) && (__cplusplus > 201100L)
23 A_ASSERT_BUILD(std::is_pod
<a_hpf
>::value
);
24 #endif /* __cplusplus */