Mercurial > hg > sv-dependency-builds
comparison src/fftw-3.3.3/doc/html/The-Discrete-Hartley-Transform.html @ 10:37bf6b4a2645
Add FFTW3
author | Chris Cannam |
---|---|
date | Wed, 20 Mar 2013 15:35:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
9:c0fb53affa76 | 10:37bf6b4a2645 |
---|---|
1 <html lang="en"> | |
2 <head> | |
3 <title>The Discrete Hartley Transform - FFTW 3.3.3</title> | |
4 <meta http-equiv="Content-Type" content="text/html"> | |
5 <meta name="description" content="FFTW 3.3.3"> | |
6 <meta name="generator" content="makeinfo 4.13"> | |
7 <link title="Top" rel="start" href="index.html#Top"> | |
8 <link rel="up" href="More-DFTs-of-Real-Data.html#More-DFTs-of-Real-Data" title="More DFTs of Real Data"> | |
9 <link rel="prev" href="Real-even_002fodd-DFTs-_0028cosine_002fsine-transforms_0029.html#Real-even_002fodd-DFTs-_0028cosine_002fsine-transforms_0029" title="Real even/odd DFTs (cosine/sine transforms)"> | |
10 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> | |
11 <!-- | |
12 This manual is for FFTW | |
13 (version 3.3.3, 25 November 2012). | |
14 | |
15 Copyright (C) 2003 Matteo Frigo. | |
16 | |
17 Copyright (C) 2003 Massachusetts Institute of Technology. | |
18 | |
19 Permission is granted to make and distribute verbatim copies of | |
20 this manual provided the copyright notice and this permission | |
21 notice are preserved on all copies. | |
22 | |
23 Permission is granted to copy and distribute modified versions of | |
24 this manual under the conditions for verbatim copying, provided | |
25 that the entire resulting derived work is distributed under the | |
26 terms of a permission notice identical to this one. | |
27 | |
28 Permission is granted to copy and distribute translations of this | |
29 manual into another language, under the above conditions for | |
30 modified versions, except that this permission notice may be | |
31 stated in a translation approved by the Free Software Foundation. | |
32 --> | |
33 <meta http-equiv="Content-Style-Type" content="text/css"> | |
34 <style type="text/css"><!-- | |
35 pre.display { font-family:inherit } | |
36 pre.format { font-family:inherit } | |
37 pre.smalldisplay { font-family:inherit; font-size:smaller } | |
38 pre.smallformat { font-family:inherit; font-size:smaller } | |
39 pre.smallexample { font-size:smaller } | |
40 pre.smalllisp { font-size:smaller } | |
41 span.sc { font-variant:small-caps } | |
42 span.roman { font-family:serif; font-weight:normal; } | |
43 span.sansserif { font-family:sans-serif; font-weight:normal; } | |
44 --></style> | |
45 </head> | |
46 <body> | |
47 <div class="node"> | |
48 <a name="The-Discrete-Hartley-Transform"></a> | |
49 <p> | |
50 Previous: <a rel="previous" accesskey="p" href="Real-even_002fodd-DFTs-_0028cosine_002fsine-transforms_0029.html#Real-even_002fodd-DFTs-_0028cosine_002fsine-transforms_0029">Real even/odd DFTs (cosine/sine transforms)</a>, | |
51 Up: <a rel="up" accesskey="u" href="More-DFTs-of-Real-Data.html#More-DFTs-of-Real-Data">More DFTs of Real Data</a> | |
52 <hr> | |
53 </div> | |
54 | |
55 <h4 class="subsection">2.5.3 The Discrete Hartley Transform</h4> | |
56 | |
57 <p>If you are planning to use the DHT because you've heard that it is | |
58 “faster” than the DFT (FFT), <strong>stop here</strong>. The DHT is not | |
59 faster than the DFT. That story is an old but enduring misconception | |
60 that was debunked in 1987. | |
61 | |
62 <p>The discrete Hartley transform (DHT) is an invertible linear transform | |
63 closely related to the DFT. In the DFT, one multiplies each input by | |
64 cos - i * sin (a complex exponential), whereas in the DHT each | |
65 input is multiplied by simply cos + sin. Thus, the DHT | |
66 transforms <code>n</code> real numbers to <code>n</code> real numbers, and has the | |
67 convenient property of being its own inverse. In FFTW, a DHT (of any | |
68 positive <code>n</code>) can be specified by an r2r kind of <code>FFTW_DHT</code>. | |
69 <a name="index-FFTW_005fDHT-98"></a><a name="index-discrete-Hartley-transform-99"></a><a name="index-DHT-100"></a> | |
70 Like the DFT, in FFTW the DHT is unnormalized, so computing a DHT of | |
71 size <code>n</code> followed by another DHT of the same size will result in | |
72 the original array multiplied by <code>n</code>. | |
73 <a name="index-normalization-101"></a> | |
74 The DHT was originally proposed as a more efficient alternative to the | |
75 DFT for real data, but it was subsequently shown that a specialized DFT | |
76 (such as FFTW's r2hc or r2c transforms) could be just as fast. In FFTW, | |
77 the DHT is actually computed by post-processing an r2hc transform, so | |
78 there is ordinarily no reason to prefer it from a performance | |
79 perspective.<a rel="footnote" href="#fn-1" name="fnd-1"><sup>1</sup></a> | |
80 However, we have heard rumors that the DHT might be the most appropriate | |
81 transform in its own right for certain applications, and we would be | |
82 very interested to hear from anyone who finds it useful. | |
83 | |
84 <p>If <code>FFTW_DHT</code> is specified for multiple dimensions of a | |
85 multi-dimensional transform, FFTW computes the separable product of 1d | |
86 DHTs along each dimension. Unfortunately, this is not quite the same | |
87 thing as a true multi-dimensional DHT; you can compute the latter, if | |
88 necessary, with at most <code>rank-1</code> post-processing passes | |
89 [see e.g. H. Hao and R. N. Bracewell, <i>Proc. IEEE</i> <b>75</b>, 264–266 (1987)]. | |
90 | |
91 <p>For the precise mathematical definition of the DHT as used by FFTW, see | |
92 <a href="What-FFTW-Really-Computes.html#What-FFTW-Really-Computes">What FFTW Really Computes</a>. | |
93 | |
94 <div class="footnote"> | |
95 <hr> | |
96 <h4>Footnotes</h4><p class="footnote"><small>[<a name="fn-1" href="#fnd-1">1</a>]</small> We provide the DHT mainly as a byproduct of some | |
97 internal algorithms. FFTW computes a real input/output DFT of | |
98 <em>prime</em> size by re-expressing it as a DHT plus post/pre-processing | |
99 and then using Rader's prime-DFT algorithm adapted to the DHT.</p> | |
100 | |
101 <hr></div> | |
102 | |
103 </body></html> | |
104 |