annotate src/fftw-3.3.3/doc/html/The-1d-Real_002ddata-DFT.html @ 23:619f715526df sv_v2.1

Update Vamp plugin SDK to 2.5
author Chris Cannam
date Thu, 09 May 2013 10:52:46 +0100
parents 37bf6b4a2645
children
rev   line source
Chris@10 1 <html lang="en">
Chris@10 2 <head>
Chris@10 3 <title>The 1d Real-data DFT - FFTW 3.3.3</title>
Chris@10 4 <meta http-equiv="Content-Type" content="text/html">
Chris@10 5 <meta name="description" content="FFTW 3.3.3">
Chris@10 6 <meta name="generator" content="makeinfo 4.13">
Chris@10 7 <link title="Top" rel="start" href="index.html#Top">
Chris@10 8 <link rel="up" href="What-FFTW-Really-Computes.html#What-FFTW-Really-Computes" title="What FFTW Really Computes">
Chris@10 9 <link rel="prev" href="The-1d-Discrete-Fourier-Transform-_0028DFT_0029.html#The-1d-Discrete-Fourier-Transform-_0028DFT_0029" title="The 1d Discrete Fourier Transform (DFT)">
Chris@10 10 <link rel="next" href="1d-Real_002deven-DFTs-_0028DCTs_0029.html#g_t1d-Real_002deven-DFTs-_0028DCTs_0029" title="1d Real-even DFTs (DCTs)">
Chris@10 11 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
Chris@10 12 <!--
Chris@10 13 This manual is for FFTW
Chris@10 14 (version 3.3.3, 25 November 2012).
Chris@10 15
Chris@10 16 Copyright (C) 2003 Matteo Frigo.
Chris@10 17
Chris@10 18 Copyright (C) 2003 Massachusetts Institute of Technology.
Chris@10 19
Chris@10 20 Permission is granted to make and distribute verbatim copies of
Chris@10 21 this manual provided the copyright notice and this permission
Chris@10 22 notice are preserved on all copies.
Chris@10 23
Chris@10 24 Permission is granted to copy and distribute modified versions of
Chris@10 25 this manual under the conditions for verbatim copying, provided
Chris@10 26 that the entire resulting derived work is distributed under the
Chris@10 27 terms of a permission notice identical to this one.
Chris@10 28
Chris@10 29 Permission is granted to copy and distribute translations of this
Chris@10 30 manual into another language, under the above conditions for
Chris@10 31 modified versions, except that this permission notice may be
Chris@10 32 stated in a translation approved by the Free Software Foundation.
Chris@10 33 -->
Chris@10 34 <meta http-equiv="Content-Style-Type" content="text/css">
Chris@10 35 <style type="text/css"><!--
Chris@10 36 pre.display { font-family:inherit }
Chris@10 37 pre.format { font-family:inherit }
Chris@10 38 pre.smalldisplay { font-family:inherit; font-size:smaller }
Chris@10 39 pre.smallformat { font-family:inherit; font-size:smaller }
Chris@10 40 pre.smallexample { font-size:smaller }
Chris@10 41 pre.smalllisp { font-size:smaller }
Chris@10 42 span.sc { font-variant:small-caps }
Chris@10 43 span.roman { font-family:serif; font-weight:normal; }
Chris@10 44 span.sansserif { font-family:sans-serif; font-weight:normal; }
Chris@10 45 --></style>
Chris@10 46 </head>
Chris@10 47 <body>
Chris@10 48 <div class="node">
Chris@10 49 <a name="The-1d-Real-data-DFT"></a>
Chris@10 50 <a name="The-1d-Real_002ddata-DFT"></a>
Chris@10 51 <p>
Chris@10 52 Next:&nbsp;<a rel="next" accesskey="n" href="1d-Real_002deven-DFTs-_0028DCTs_0029.html#g_t1d-Real_002deven-DFTs-_0028DCTs_0029">1d Real-even DFTs (DCTs)</a>,
Chris@10 53 Previous:&nbsp;<a rel="previous" accesskey="p" href="The-1d-Discrete-Fourier-Transform-_0028DFT_0029.html#The-1d-Discrete-Fourier-Transform-_0028DFT_0029">The 1d Discrete Fourier Transform (DFT)</a>,
Chris@10 54 Up:&nbsp;<a rel="up" accesskey="u" href="What-FFTW-Really-Computes.html#What-FFTW-Really-Computes">What FFTW Really Computes</a>
Chris@10 55 <hr>
Chris@10 56 </div>
Chris@10 57
Chris@10 58 <h4 class="subsection">4.8.2 The 1d Real-data DFT</h4>
Chris@10 59
Chris@10 60 <p>The real-input (r2c) DFT in FFTW computes the <em>forward</em> transform
Chris@10 61 Y of the size <code>n</code> real array X, exactly as defined
Chris@10 62 above, i.e.
Chris@10 63 <center><img src="equation-dft.png" align="top">.</center>This output array Y can easily be shown to possess the
Chris@10 64 &ldquo;Hermitian&rdquo; symmetry
Chris@10 65 <a name="index-Hermitian-296"></a><i>Y<sub>k</sub> = Y<sub>n-k</sub></i><sup>*</sup>,where we take Y to be periodic so that
Chris@10 66 <i>Y<sub>n</sub> = Y</i><sub>0</sub>.
Chris@10 67
Chris@10 68 <p>As a result of this symmetry, half of the output Y is redundant
Chris@10 69 (being the complex conjugate of the other half), and so the 1d r2c
Chris@10 70 transforms only output elements 0<small class="dots">...</small>n/2 of Y
Chris@10 71 (n/2+1 complex numbers), where the division by 2 is
Chris@10 72 rounded down.
Chris@10 73
Chris@10 74 <p>Moreover, the Hermitian symmetry implies that
Chris@10 75 <i>Y</i><sub>0</sub>and, if n is even, the
Chris@10 76 <i>Y</i><sub><i>n</i>/2</sub>element, are purely real. So, for the <code>R2HC</code> r2r transform, these
Chris@10 77 elements are not stored in the halfcomplex output format.
Chris@10 78 <a name="index-r2r-297"></a><a name="index-R2HC-298"></a><a name="index-halfcomplex-format-299"></a>
Chris@10 79
Chris@10 80 <p>The c2r and <code>H2RC</code> r2r transforms compute the backward DFT of the
Chris@10 81 <em>complex</em> array X with Hermitian symmetry, stored in the
Chris@10 82 r2c/<code>R2HC</code> output formats, respectively, where the backward
Chris@10 83 transform is defined exactly as for the complex case:
Chris@10 84 <center><img src="equation-idft.png" align="top">.</center>The outputs <code>Y</code> of this transform can easily be seen to be purely
Chris@10 85 real, and are stored as an array of real numbers.
Chris@10 86
Chris@10 87 <p><a name="index-normalization-300"></a>Like FFTW's complex DFT, these transforms are unnormalized. In other
Chris@10 88 words, applying the real-to-complex (forward) and then the
Chris@10 89 complex-to-real (backward) transform will multiply the input by
Chris@10 90 n.
Chris@10 91
Chris@10 92 <!-- =========> -->
Chris@10 93 </body></html>
Chris@10 94