forked from DD4WH/Teensy-SDR-Rx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
iir_40.h
87 lines (78 loc) · 1.73 KB
/
iir_40.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// DD4WH LPF DC - 4.0 kHz
// (sampling rate 44.117 kHz)
// 12.2.2016
// Parameters generated using Iowa Hills IIR Filter Designer
// 8th order inv Cheby Lowpass (4-stage cascaded biquad)
//
//
//const uint16_t IIR_44_numStages = 6;
// coefficients must be in order: B0, B1, B2, A1, A2
// unlike output by Iowa Hils IIR Filter Designer !
const double IIR_40_Coeffs_0[] =
{
0.484810408275220817,
-0.651221487101388163,
0.484810408275220817,
-0.891628778714572134,
0.210028108163625632
};
const double IIR_40_Coeffs_1[] =
{
0.351872869530550469,
-0.401617388625892080,
0.351872869530550469,
-1.062389411661841750,
0.364517762097050613
};
const double IIR_40_Coeffs_2[] =
{
0.189882490696338585,
-0.091345663765967006,
0.189882490696338585,
-1.306231903874912840,
0.594651221501622862
};
const double IIR_40_Coeffs_3[] =
{
0.089146208826620985,
0.118511599523885514,
0.089146208826620985,
-1.556718436850091260,
0.853522454027218824
};
/*
// ELLIPTIC filter coefficients
// works, but with an unpleasant and annoying hiss sound!
const double IIR_40_Coeffs_0[] =
{
0.147439714070734695,
-0.234713625844170160,
0.147439714070734695,
-1.594339282170066820,
0.654505084467365883
};
const double IIR_40_Coeffs_1[] =
{
0.343454259640266046,
-0.522129062081838513,
0.343454259640266046,
-1.616431618662758530,
0.781211075861452220
};
const double IIR_40_Coeffs_2[] =
{
0.334664568130310369,
-0.408981103587607198,
0.334664568130310369,
-1.640858864246826920,
0.901206896919840461
};
const double IIR_40_Coeffs_3[] =
{
0.124019274640942659,
0.058934416406060730,
0.124019274640942659,
-1.666344616468945490,
0.973317582156891459
};
*/