-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfdacoefs.h
131 lines (128 loc) · 9.21 KB
/
fdacoefs.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
/*
* Filter Coefficients (C Source) generated by the Filter Design and Analysis Tool
* Generated by MATLAB(R) 9.4 and Signal Processing Toolbox 8.0.
* Generated on: 06-Feb-2022 19:28:18
*/
/*
* Discrete-Time FIR Filter (real)
* -------------------------------
* Filter Structure : Direct-Form FIR
* Filter Length : 501
* Stable : Yes
* Linear Phase : Yes (Type 1)
*/
/* General type conversion for MATLAB generated C-code */
/*
* Expected path to tmwtypes.h
* F:\Program Files\MATLAB\R2018a\extern\include\tmwtypes.h
*/
/*
* Warning - Filter coefficients were truncated to fit specified data type.
* The resulting response may not match generated theoretical response.
* Use the Filter Design & Analysis Tool to design accurate
* single-precision filter coefficients.
*/
const int BL = 501;
const double B[501] = {
-0.0001007850587,-0.0001011492495,-0.0001016050883,-0.0001021533972,-0.0001027949984,
-0.000103530685,-0.0001043612283,-0.0001052873995,-0.0001063099189,-0.0001074295142,
-0.0001086468765,-0.0001099626897,-0.0001113775943,-0.0001128922304,-0.0001145072019,
-0.0001162231129,-0.0001180405234,-0.0001199599792,-0.0001219820115,-0.0001241071004,
-0.0001263357553,-0.0001286683982,-0.0001311054802,-0.0001336474234,-0.0001362945768,
-0.0001390473335,-0.0001419060136,-0.0001448709372, -0.00014794241,-0.0001511206647,
-0.0001544059633,-0.000157798524,-0.0001612985216,-0.0001649061451,-0.000168621511,
-0.0001724447648,-0.0001763759792,-0.0001804152271,-0.0001845625375,-0.0001888179395,
-0.0001931814186,-0.0001976529456,-0.0002022324479,-0.0002069198381,-0.0002117150143,
-0.000216617831,-0.0002216281136,-0.0002267456875,-0.0002319703199,-0.0002373017924,
-0.000242739814,-0.0002482840791,-0.0002539342968,-0.0002596901031,-0.0002655511489,
-0.0002715169685,-0.0002775872126,-0.0002837613865,-0.0002900390245,-0.0002964196319,
-0.0003029026848,-0.0003094875719,-0.0003161737695,-0.0003229606664,-0.0003298476222,
-0.0003368339676,-0.0003439190041,-0.0003511020623,-0.0003583823855,-0.0003657592461,
-0.0003732318,-0.0003807992907,-0.000388460845,-0.0003962156479,-0.0004040627682,
-0.0004120013327,-0.0004200303811,-0.0004281489819,-0.0004363561457,-0.0004446508538,
-0.0004530321166,-0.0004614988284,-0.0004700499703,-0.0004786844074,-0.0004874010338,
-0.000496198656,-0.0005050761974,-0.0005140324356,-0.0005230661482,-0.0005321761128,
-0.0005413610488,-0.0005506196758,-0.0005599507713,-0.0005693529383,-0.0005788248964,
-0.0005883652484,-0.0005979726557,-0.000607645663,-0.0006173829315,-0.0006271829479,
-0.0006370443152, -0.00064696552,-0.000656945107,-0.000666981563,-0.0006770733162,
-0.0006872188533,-0.0006974166026,-0.0007076649927,-0.0007179624517,-0.0007283073501,
-0.0007386979996,-0.000749132887,-0.0007596102078,-0.0007701283903,-0.0007806857466,
-0.0007912805304,-0.0008019110537,-0.0008125756285,-0.0008232723922,-0.0008339997148,
-0.0008447557921,-0.0008555388777,-0.000866347109,-0.0008771786815,-0.0008880319074,
-0.0008989048656,-0.0009097957518,-0.0009207027033,-0.0009316239157,-0.0009425575263,
-0.0009535016725,-0.0009644544334,-0.0009754140046,-0.0009863784071,-0.0009973458946,
-0.001008314313,-0.001019282034,-0.001030247076,-0.001041207346,-0.001052161213,
-0.001063106465,-0.001074041356,-0.001084963907,-0.001095872256,-0.001106764306,
-0.001117638312,-0.001128492178,-0.001139324042,-0.001150131924,-0.001160913962,
-0.001171668177,-0.001182392589, -0.00119308522,-0.001203744323,-0.001214367803,
-0.001224953798,-0.001235500327, -0.00124600553,-0.001256467425,-0.001266884152,
-0.001277253847,-0.001287574414,-0.001297844108,-0.001308061066,-0.001318223309,
-0.001328328974,-0.001338376314,-0.001348363236,-0.001358287991,-0.001368148834,
-0.001377943787,-0.001387671102,-0.001397328917,-0.001406915369, -0.00141642883,
-0.001425867318,-0.001435229206,-0.001444512745,-0.001453716075,-0.001462837448,
-0.001471875235,-0.001480827807,-0.001489693183,-0.001498469966,-0.001507156296,
-0.001515750657,-0.001524251304,-0.001532656723,-0.001540965284,-0.001549175358,
-0.001557285432,-0.001565293875,-0.001573199173,-0.001580999931,-0.001588694518,
-0.001596281538,-0.001603759476, -0.00161112682,-0.001618382405,-0.001625524601,
-0.001632552128, -0.00163946359,-0.001646257704,-0.001652933192,-0.001659488655,
-0.001665922813,-0.001672234503,-0.001678422559,-0.001684485585, -0.00169042265,
-0.001696232357,-0.001701913774,-0.001707465621,-0.001712887082,-0.001718176762,
-0.001723333844,-0.001728357398,-0.001733246259,-0.001737999497,-0.001742616296,
-0.001747095725,-0.001751436852,-0.001755638747,-0.001759700826, -0.00176362216,
-0.001767401933,-0.001771039562,-0.001774534117,-0.001777885132,-0.001781091793,
-0.001784153515,-0.001787069719,-0.001789839822,-0.001792463358,-0.001794939744,
-0.0017972684,-0.001799449092,-0.001801481121,-0.001803364372,-0.001805098145,
-0.001806682441,-0.001808116795,-0.001809400856,-0.001810534508,-0.001811517403,
-0.001812349423,-0.001813030336,-0.001813560142,-0.001813938608,-0.001814165735,
0.9982863665,-0.001814165735,-0.001813938608,-0.001813560142,-0.001813030336,
-0.001812349423,-0.001811517403,-0.001810534508,-0.001809400856,-0.001808116795,
-0.001806682441,-0.001805098145,-0.001803364372,-0.001801481121,-0.001799449092,
-0.0017972684,-0.001794939744,-0.001792463358,-0.001789839822,-0.001787069719,
-0.001784153515,-0.001781091793,-0.001777885132,-0.001774534117,-0.001771039562,
-0.001767401933, -0.00176362216,-0.001759700826,-0.001755638747,-0.001751436852,
-0.001747095725,-0.001742616296,-0.001737999497,-0.001733246259,-0.001728357398,
-0.001723333844,-0.001718176762,-0.001712887082,-0.001707465621,-0.001701913774,
-0.001696232357, -0.00169042265,-0.001684485585,-0.001678422559,-0.001672234503,
-0.001665922813,-0.001659488655,-0.001652933192,-0.001646257704, -0.00163946359,
-0.001632552128,-0.001625524601,-0.001618382405, -0.00161112682,-0.001603759476,
-0.001596281538,-0.001588694518,-0.001580999931,-0.001573199173,-0.001565293875,
-0.001557285432,-0.001549175358,-0.001540965284,-0.001532656723,-0.001524251304,
-0.001515750657,-0.001507156296,-0.001498469966,-0.001489693183,-0.001480827807,
-0.001471875235,-0.001462837448,-0.001453716075,-0.001444512745,-0.001435229206,
-0.001425867318, -0.00141642883,-0.001406915369,-0.001397328917,-0.001387671102,
-0.001377943787,-0.001368148834,-0.001358287991,-0.001348363236,-0.001338376314,
-0.001328328974,-0.001318223309,-0.001308061066,-0.001297844108,-0.001287574414,
-0.001277253847,-0.001266884152,-0.001256467425, -0.00124600553,-0.001235500327,
-0.001224953798,-0.001214367803,-0.001203744323, -0.00119308522,-0.001182392589,
-0.001171668177,-0.001160913962,-0.001150131924,-0.001139324042,-0.001128492178,
-0.001117638312,-0.001106764306,-0.001095872256,-0.001084963907,-0.001074041356,
-0.001063106465,-0.001052161213,-0.001041207346,-0.001030247076,-0.001019282034,
-0.001008314313,-0.0009973458946,-0.0009863784071,-0.0009754140046,-0.0009644544334,
-0.0009535016725,-0.0009425575263,-0.0009316239157,-0.0009207027033,-0.0009097957518,
-0.0008989048656,-0.0008880319074,-0.0008771786815,-0.000866347109,-0.0008555388777,
-0.0008447557921,-0.0008339997148,-0.0008232723922,-0.0008125756285,-0.0008019110537,
-0.0007912805304,-0.0007806857466,-0.0007701283903,-0.0007596102078,-0.000749132887,
-0.0007386979996,-0.0007283073501,-0.0007179624517,-0.0007076649927,-0.0006974166026,
-0.0006872188533,-0.0006770733162,-0.000666981563,-0.000656945107, -0.00064696552,
-0.0006370443152,-0.0006271829479,-0.0006173829315,-0.000607645663,-0.0005979726557,
-0.0005883652484,-0.0005788248964,-0.0005693529383,-0.0005599507713,-0.0005506196758,
-0.0005413610488,-0.0005321761128,-0.0005230661482,-0.0005140324356,-0.0005050761974,
-0.000496198656,-0.0004874010338,-0.0004786844074,-0.0004700499703,-0.0004614988284,
-0.0004530321166,-0.0004446508538,-0.0004363561457,-0.0004281489819,-0.0004200303811,
-0.0004120013327,-0.0004040627682,-0.0003962156479,-0.000388460845,-0.0003807992907,
-0.0003732318,-0.0003657592461,-0.0003583823855,-0.0003511020623,-0.0003439190041,
-0.0003368339676,-0.0003298476222,-0.0003229606664,-0.0003161737695,-0.0003094875719,
-0.0003029026848,-0.0002964196319,-0.0002900390245,-0.0002837613865,-0.0002775872126,
-0.0002715169685,-0.0002655511489,-0.0002596901031,-0.0002539342968,-0.0002482840791,
-0.000242739814,-0.0002373017924,-0.0002319703199,-0.0002267456875,-0.0002216281136,
-0.000216617831,-0.0002117150143,-0.0002069198381,-0.0002022324479,-0.0001976529456,
-0.0001931814186,-0.0001888179395,-0.0001845625375,-0.0001804152271,-0.0001763759792,
-0.0001724447648,-0.000168621511,-0.0001649061451,-0.0001612985216,-0.000157798524,
-0.0001544059633,-0.0001511206647, -0.00014794241,-0.0001448709372,-0.0001419060136,
-0.0001390473335,-0.0001362945768,-0.0001336474234,-0.0001311054802,-0.0001286683982,
-0.0001263357553,-0.0001241071004,-0.0001219820115,-0.0001199599792,-0.0001180405234,
-0.0001162231129,-0.0001145072019,-0.0001128922304,-0.0001113775943,-0.0001099626897,
-0.0001086468765,-0.0001074295142,-0.0001063099189,-0.0001052873995,-0.0001043612283,
-0.000103530685,-0.0001027949984,-0.0001021533972,-0.0001016050883,-0.0001011492495,
-0.0001007850587
};