/usr/share/doc/pyxplot/html/sect0034.html is in pyxplot-doc 0.9.2-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="generator" content="plasTeX" />
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<title>PyXPlot Users' Guide: Window functions</title>
<link href="sec-histogram.html" title="Histograms" rel="next" />
<link href="sect0033.html" title="Fourier transforms" rel="prev" />
<link href="sect0033.html" title="Fourier transforms" rel="up" />
<link rel="stylesheet" href="styles/styles.css" />
</head>
<body>
<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sect0033.html" title="Fourier transforms"><img alt="Previous: Fourier transforms" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>
<td><a href="sect0033.html" title="Fourier transforms"><img alt="Up: Fourier transforms" border="0" src="icons/up.gif" width="32" height="32" /></a></td>
<td><a href="sec-histogram.html" title="Histograms"><img alt="Next: Histograms" border="0" src="icons/next.gif" width="32" height="32" /></a></td>
<td class="navtitle" align="center">PyXPlot Users' Guide</td>
<td><a href="index.html" title="Table of Contents"><img border="0" alt="" src="icons/contents.gif" width="32" height="32" /></a></td>
<td><a href="sect0288.html" title="Index"><img border="0" alt="" src="icons/index.gif" width="32" height="32" /></a></td>
<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
</tr>
</table>
</div>
<div class="breadcrumbs">
<span>
<span>
<a href="index.html">PyXPlot Users' Guide</a> <b>:</b>
</span>
</span><span>
<span>
<a href="sect0001.html">Introduction to PyXPlot</a> <b>:</b>
</span>
</span><span>
<span>
<a href="ch-numerics.html">Working with data</a> <b>:</b>
</span>
</span><span>
<span>
<a href="sect0033.html">Fourier transforms</a> <b>:</b>
</span>
</span><span>
<span>
<b class="current">Window functions</b>
</span>
</span>
<hr />
</div>
<div><h2 id="a0000000035">5.8.1 Window functions</h2>
<p> <a name="a0000000580" id="a0000000580"></a> </p><p>A range of commonly-used window functions may automatically be applied to data as it is read into the <tt class="tt">fft</tt> and <tt class="tt">ifft</tt> commands; these are listed together with their algebraic forms in TableĀ <a href="sect0034.html#tab:windowfuncs">5.1</a> and shown in FigureĀ <a href="sect0034.html#fig:windowfuncs">5.1</a>. In each case, the window functions are given for sample number <img src="images/img-0025.png" alt="$n$" style="vertical-align:0px;
width:11px;
height:8px" class="math gen" />, which ranges between <img src="images/img-0155.png" alt="$0$" style="vertical-align:0px;
width:9px;
height:12px" class="math gen" /> and <img src="images/img-0241.png" alt="$N_ x$" style="vertical-align:-2px;
width:23px;
height:14px" class="math gen" />. The window functions may be invoked using the following syntax: </p><pre>
fft [...] <out>() of <in>() window <window_name>
</pre><p>Where multi-dimensional FFTs are performed, window functions are applied to each dimension in turn. Other arbitrary window functions may be implemented by pre-multiplying data before entry to the <tt class="tt">fft</tt> and <tt class="tt">ifft</tt> commands. </p><div id="tab:windowfuncs" class="table"><center> <table cellspacing="0" class="tabular">
<tr>
<td style="border-top-style:solid; text-align:left; border-top-color:black; border-top-width:1px; border-left:1px solid black"><p> <b class="bf">Window Name</b> </p></td>
<td style="border-top-style:solid; text-align:left; border-top-color:black; border-top-width:1px; border-right:1px solid black"><p> <b class="bf">Algebraic Definition</b> </p></td>
</tr><tr>
<td style="border-top-style:solid; text-align:left; border-top-color:black; border-top-width:1px; border-left:1px solid black"><p>Bartlett </p></td>
<td style="border-top-style:solid; text-align:left; border-top-color:black; border-top-width:1px; border-right:1px solid black"><p> <img src="images/img-0242.png" alt="$\displaystyle w(n) = \left( \frac{2}{N_ x-1} \right) \left( \frac{N_ x-1}{2} - \left| n - \frac{N_ x-1}{2} \right| \right)$" style="vertical-align:-17px;
width:359px;
height:45px" class="math gen" /> <img src="images/img-0243.png" alt="\rule{0pt}{20pt}" style="vertical-align:0px; width:1px; height:1px" class="box gen" /></p></td>
</tr><tr>
<td style="text-align:left; border-left:1px solid black"><p>BartlettHann </p></td>
<td style="text-align:left; border-right:1px solid black"><p> <img src="images/img-0244.png" alt="$\displaystyle w(n) = a_0 - a_1\left|\frac{n}{N_ x-1}-\frac{1}{2}\right| - a_2\cos \left(\frac{2\pi n}{N_ x-1}\right),\; \textrm{for}$" style="vertical-align:-17px;
width:423px;
height:45px" class="math gen" /> <img src="images/img-0245.png" alt="\rule{0pt}{\wfgap }" style="vertical-align:0px; width:1px; height:1px" class="box gen" /></p></td>
</tr><tr>
<td style="text-align:left; border-left:1px solid black"> </td>
<td style="text-align:left; border-right:1px solid black"><p> <img src="images/img-0246.png" alt="$a_0=0.62,\; a_1=0.48,\; a_2=0.38.$" style="vertical-align:-4px;
width:252px;
height:16px" class="math gen" /> <img src="images/img-0243.png" alt="\rule{0pt}{20pt}" style="vertical-align:0px; width:1px; height:1px" class="box gen" /></p></td>
</tr><tr>
<td style="text-align:left; border-left:1px solid black"><p>Cosine </p></td>
<td style="text-align:left; border-right:1px solid black"><p> <img src="images/img-0247.png" alt="$\displaystyle w(n) = \cos \left(\frac{\pi n}{N_ x-1} - \frac{\pi }{2} \right)$" style="vertical-align:-17px;
width:209px;
height:44px" class="math gen" /> <img src="images/img-0245.png" alt="\rule{0pt}{\wfgap }" style="vertical-align:0px; width:1px; height:1px" class="box gen" /></p></td>
</tr><tr>
<td style="text-align:left; border-left:1px solid black"><p>Gauss </p></td>
<td style="text-align:left; border-right:1px solid black"><p> <img src="images/img-0248.png" alt="$\displaystyle w(n) = \exp \left\{ -\frac{1}{2}\left[ \frac{n-(N_ x-1)/2}{\sigma (N_ x-1)/2} \right]^2 \right\} ,\; \textrm{for}\; \sigma =0.5$" style="vertical-align:-23px;
width:404px;
height:55px" class="math gen" /> <img src="images/img-0245.png" alt="\rule{0pt}{\wfgap }" style="vertical-align:0px; width:1px; height:1px" class="box gen" /></p></td>
</tr><tr>
<td style="text-align:left; border-left:1px solid black"><p>Hamming </p></td>
<td style="text-align:left; border-right:1px solid black"><p> <img src="images/img-0249.png" alt="$\displaystyle w(n) = 0.54 - 0.46\cos \left(\frac{2\pi n}{N_ x-1}\right)$" style="vertical-align:-17px;
width:262px;
height:44px" class="math gen" /> <img src="images/img-0245.png" alt="\rule{0pt}{\wfgap }" style="vertical-align:0px; width:1px; height:1px" class="box gen" /></p></td>
</tr><tr>
<td style="text-align:left; border-left:1px solid black"><p>Hann </p></td>
<td style="text-align:left; border-right:1px solid black"><p> <img src="images/img-0250.png" alt="$\displaystyle w(n) = 0.5 \left[ 1 - \cos \left(\frac{2\pi n}{N_ x-1}\right) \right]$" style="vertical-align:-17px;
width:246px;
height:44px" class="math gen" /> <img src="images/img-0245.png" alt="\rule{0pt}{\wfgap }" style="vertical-align:0px; width:1px; height:1px" class="box gen" /></p></td>
</tr><tr>
<td style="text-align:left; border-left:1px solid black"><p>Lanczos </p></td>
<td style="text-align:left; border-right:1px solid black"><p> <img src="images/img-0251.png" alt="$\displaystyle w(n) = \mathrm{sinc}\left( \frac{2n}{N_ x-1} - 1 \right)$" style="vertical-align:-17px;
width:209px;
height:44px" class="math gen" /> <img src="images/img-0245.png" alt="\rule{0pt}{\wfgap }" style="vertical-align:0px; width:1px; height:1px" class="box gen" /></p></td>
</tr><tr>
<td style="text-align:left; border-left:1px solid black"><p>Rectangular </p></td>
<td style="text-align:left; border-right:1px solid black"><p> <img src="images/img-0252.png" alt="$\displaystyle w(n) = 1$" style="vertical-align:-4px;
width:70px;
height:18px" class="math gen" /> <img src="images/img-0245.png" alt="\rule{0pt}{\wfgap }" style="vertical-align:0px; width:1px; height:1px" class="box gen" /></p></td>
</tr><tr>
<td style="border-bottom-color:black; border-bottom-width:1px; text-align:left; border-bottom-style:solid; border-left:1px solid black"><p>Triangular </p></td>
<td style="border-bottom-color:black; border-bottom-width:1px; text-align:left; border-bottom-style:solid; border-right:1px solid black"><p> <img src="images/img-0253.png" alt="$\displaystyle w(n) = \left( \frac{2}{N_ x} \right) \left( \frac{N_ x}{2} - \left| n - \frac{N_ x-1}{2} \right| \right)$" style="vertical-align:-17px;
width:297px;
height:45px" class="math gen" /> <img src="images/img-0245.png" alt="\rule{0pt}{\wfgap }" style="vertical-align:0px; width:1px; height:1px" class="box gen" /></p></td>
</tr>
</table> </center><div class="caption"><b>Table 5.1</b>: <span>Window functions available in the <tt class="tt">fft</tt> and <tt class="tt">ifft</tt> commands.</span></div></div><div id="fig:windowfuncs" class="figure"><center> <img src="images/img-0255.png" alt="\includegraphics{examples/eps/ex_windowfuncs}" style="width:498px; height:772px" />
</center><div class="caption"><b>Figure 5.1</b>: <span>Window functions available in the <tt class="tt">fft</tt> and <tt class="tt">ifft</tt> commands.</span></div></div></div>
<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sect0033.html" title="Fourier transforms"><img alt="Previous: Fourier transforms" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>
<td><a href="sect0033.html" title="Fourier transforms"><img alt="Up: Fourier transforms" border="0" src="icons/up.gif" width="32" height="32" /></a></td>
<td><a href="sec-histogram.html" title="Histograms"><img alt="Next: Histograms" border="0" src="icons/next.gif" width="32" height="32" /></a></td>
<td class="navtitle" align="center">PyXPlot Users' Guide</td>
<td><a href="index.html" title="Table of Contents"><img border="0" alt="" src="icons/contents.gif" width="32" height="32" /></a></td>
<td><a href="sect0288.html" title="Index"><img border="0" alt="" src="icons/index.gif" width="32" height="32" /></a></td>
<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
</tr>
</table>
</div>
<script language="javascript" src="icons/imgadjust.js" type="text/javascript"></script>
</body>
</html>
|