43#if defined(__cplusplus)
60#if defined(__cplusplus)
63typedef struct a_hpf hpf;
67#define A_HPF_1(alpha) {a_float_c(alpha), 0, 0}
68#define A_HPF_2(fc, ts) {A_HPF_GEN(fc, ts), 0, 0}
70#define A_HPF_GEN(fc, ts) (1 / (A_FLOAT_TAU * a_float_c(fc) * a_float_c(ts) + 1))
double a_float
compiler built-in floating-point number type
Definition a.h:1003
#define A_FLOAT_TAU
Definition math.h:239
a_float a_hpf_iter(a_hpf *ctx, a_float x)
calculate for High Pass Filter
Definition hpf.h:111
a_float a_hpf_gen(a_float fc, a_float ts)
generate for High Pass Filter
Definition hpf.h:85
struct a_hpf a_hpf
instance structure for High Pass Filter
void a_hpf_zero(a_hpf *ctx)
zeroing for High Pass Filter
Definition hpf.h:121
void a_hpf_init(a_hpf *ctx, a_float alpha)
initialize for High Pass Filter
Definition hpf.h:95
mathematical algorithm library
instance structure for High Pass Filter
Definition hpf.h:39
a_float alpha
Definition hpf.h:40
a_float input
Definition hpf.h:42
a_float output
Definition hpf.h:41