-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbiquad_8h.html
More file actions
191 lines (181 loc) · 10.7 KB
/
biquad_8h.html
File metadata and controls
191 lines (181 loc) · 10.7 KB
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Audio Processing Framework (APF): apf/biquad.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">Audio Processing Framework (APF)<span id="projectnumber"> version 0.5.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_4d5ff6b70decf3ee5ccb97900421ace2.html">apf</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#namespaces">Namespaces</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">biquad.h File Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Second order recursive filter and more.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include <iosfwd></code><br />
<code>#include <cmath></code><br />
<code>#include <complex></code><br />
<code>#include <vector></code><br />
<code>#include <cassert></code><br />
<code>#include "<a class="el" href="denormalprevention_8h_source.html">apf/denormalprevention.h</a>"</code><br />
<code>#include "<a class="el" href="math_8h_source.html">apf/math.h</a>"</code><br />
</div>
<p><a href="biquad_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structapf_1_1SosCoefficients.html">apf::SosCoefficients< T ></a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Coefficients of digital recursive filter (second order section). <a href="structapf_1_1SosCoefficients.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structapf_1_1LaplaceCoefficients.html">apf::LaplaceCoefficients< T ></a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Coefficients of analog recursive filter. <a href="structapf_1_1LaplaceCoefficients.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classapf_1_1BiQuad.html">apf::BiQuad< T, DenormalPrevention ></a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Direct Form II recursive filter of second order. <a href="classapf_1_1BiQuad.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classapf_1_1Cascade.html">apf::Cascade< S, Container ></a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Cascade of filter sections. <a href="classapf_1_1Cascade.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespaceapf"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceapf.html">apf</a></td></tr>
<tr class="memdesc:namespaceapf"><td class="mdescLeft"> </td><td class="mdescRight">Audio Processing Framework. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a76a14a4bd409d7589bcb4c1044dc3b7d"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
<tr class="memitem:a76a14a4bd409d7589bcb4c1044dc3b7d"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="biquad_8h.html#a76a14a4bd409d7589bcb4c1044dc3b7d">apf::internal::roots2poly</a> (T Roots[2][2], T &poly1, T &poly2)</td></tr>
<tr class="memdesc:a76a14a4bd409d7589bcb4c1044dc3b7d"><td class="mdescLeft"> </td><td class="mdescRight">Roots-to-polynomial conversion. <a href="biquad_8h.html#a76a14a4bd409d7589bcb4c1044dc3b7d">More...</a><br /></td></tr>
<tr class="separator:a76a14a4bd409d7589bcb4c1044dc3b7d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4c02c4c6fcddb640f300a6d588f64989"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
<tr class="memitem:a4c02c4c6fcddb640f300a6d588f64989"><td class="memTemplItemLeft" align="right" valign="top">SosCoefficients< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceapf.html#a4c02c4c6fcddb640f300a6d588f64989">apf::bilinear</a> (LaplaceCoefficients< T > coeffs_in, int fs, int fp)</td></tr>
<tr class="memdesc:a4c02c4c6fcddb640f300a6d588f64989"><td class="mdescLeft"> </td><td class="mdescRight">Bilinear transform. <a href="namespaceapf.html#a4c02c4c6fcddb640f300a6d588f64989">More...</a><br /></td></tr>
<tr class="separator:a4c02c4c6fcddb640f300a6d588f64989"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Second order recursive filter and more. </p>
<p class="definition">Definition in file <a class="el" href="biquad_8h_source.html">biquad.h</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a76a14a4bd409d7589bcb4c1044dc3b7d" name="a76a14a4bd409d7589bcb4c1044dc3b7d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76a14a4bd409d7589bcb4c1044dc3b7d">◆ </a></span>roots2poly()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename T > </div>
<table class="memname">
<tr>
<td class="memname">void apf::internal::roots2poly </td>
<td>(</td>
<td class="paramtype">T </td>
<td class="paramname"><em>Roots</em>[2][2], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">T & </td>
<td class="paramname"><em>poly1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">T & </td>
<td class="paramname"><em>poly2</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Roots-to-polynomial conversion. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">T</td><td>precision of data </td></tr>
</table>
</dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">Roots</td><td>2x2 roots matrix </td></tr>
<tr><td class="paramname">poly1</td><td>reference to first-order-coefficient of output polynomial </td></tr>
<tr><td class="paramname">poly2</td><td>reference to second-order-coefficient of output polynomial </td></tr>
</table>
</dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>zeroth-order is ignored for this special case! </dd></dl>
<p class="definition">Definition at line <a class="el" href="biquad_8h_source.html#l00254">254</a> of file <a class="el" href="biquad_8h_source.html">biquad.h</a>.</p>
<p class="reference">References <a class="el" href="biquad_8h_source.html#l00254">apf::internal::roots2poly()</a>.</p>
<p class="reference">Referenced by <a class="el" href="biquad_8h_source.html#l00254">apf::internal::roots2poly()</a>.</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>