GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Discrete Fourier transform

In mathematics, the discrete Fourier transform (DFT) is a discrete version of the Fourier transform that converts a finite sequence of numbers into another sequence of the same length, representing the amplitude and phase of different frequency components. In this way, it changes data from a description in terms of sampled values to a description in terms of oscillations. The inverse discrete Fourier transform reverses this process and recovers the original sequence. For data sampled at equally spaced points, the DFT can be understood more precisely as converting between sample values and the coefficients of a trigonometric polynomial that interpolates those values. It is therefore a basic... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

In mathematics, the discrete Fourier transform (DFT) is a discrete version of the Fourier transform that converts a finite sequence of numbers into another sequence of the same length, representing the amplitude and phase of different frequency components. In this way, it changes data from a description in terms of sampled values to a description in terms of oscillations. The inverse discrete Fourier transform reverses this process and recovers the original sequence. For data sampled at equally spaced points, the DFT can be understood more precisely as converting between sample values and the coefficients of a trigonometric polynomial that interpolates those values. It is therefore a basic tool for numerical work with smooth periodic functions, which can often be approximated well by trigonometric polynomials. In practice, the DFT is usually computed by efficient fast Fourier transform (FFT) algorithms. The DFT is used in many practical applications of Fourier analysis. In digital signal processing, the input is often a sampled quantity or signal that varies over time, such as the pressure of a sound wave, a radio signal, or daily temperature readings, sampled over a finite time interval (often defined by a window function ). In image processing, the samples can be the values of pixels along a row or column of a raster image. The DFT is also used to efficiently solve partial differential equations, and to perform other operations such as convolutions or multiplying large integers. Since the DFT deals with a finite amount of data, it can be implemented in computers by numerical algorithms or even dedicated hardware. These implementations usually employ efficient fast Fourier transform (FFT) algorithms; so much so that the terms "FFT" and "DFT" are often used interchangeably. Prior to its current usage, the "FFT" initialism may have also been used for the ambiguous term "finite Fourier transform". ==Definition== The discrete Fourier transform transforms a sequence of N complex numbers \left \{ \mathbf{x}_n \right \} := x_0, x_1, \ldots, x_{N-1} into another sequence of complex numbers, \left \{ \mathbf{X}_k \right \} := X_0, X_1, \ldots, X_{N-1}, which is defined by: {{Equation box 1|title=Discrete Fourier transform |indent =: |cellpadding= 6 |border |border colour = #0073CF |background colour=#F5FFFA |equation = {{NumBlk|:| X_k = \sum_{n=0}^{N-1} x_n \cdot e^{-i2\pi \tfrac{k}{N}n}     | }} }} The transform is sometimes denoted by the symbol \mathcal{F} , as in \mathbf{X} = \mathcal{F} \left \{ \mathbf{x} \right \} or \mathcal{F} \left ( \mathbf{x} \right ) or \mathcal{F} \mathbf{x} . As a linear transformation on a finite-dimensional vector space, the DFT expression can also be written in terms of a DFT matrix. When scaled appropriately, it becomes a unitary matrix, and the DFT can thus be viewed as a transformation from one orthonormal basis to another. The inverse transform is given by: {{Equation box 1|title=Inverse transform |indent =: |cellpadding= 6 |border |border colour = #0073CF |background colour=#F5FFFA |equation = {{NumBlk|:| x_n = \frac{1}{N} \sum_{k=0}^{N-1} X_k \cdot e^{i2\pi \tfrac{k}{N} n}     | }} }} is also N -periodic (in index n ). In , each X_k is a complex number whose polar coordinates are the amplitude and phase of a complex sinusoidal component \left(e^{i 2 \pi \tfrac{k}{N}n}\right) of the function x_n . (See Discrete Fourier series.) The sinusoid's frequency is k cycles per N samples. The normalization factor multiplying the DFT and inverse DFT (IDFT), here 1 and \tfrac{1}{N} , and the signs of the exponents are the most common conventions. The only actual requirements of these conventions are that the DFT and IDFT have opposite-sign exponents and that the product of their normalization factors be \tfrac{1}{N}. An uncommon normalization of \sqrt{\tfrac{1}{N}} for both the DFT and IDFT makes the transform-pair unitary. can also be evaluated outside the domain k \in [0,N-1] , and that extended sequence is N -periodic. Accordingly, other sequences of N indices are sometimes used, such as \left[-\frac{N}{2}, \frac{N}{2} - 1\right] (if N is even) and \left[-\frac{N-1}{2}, \frac{N-1}{2}\right] (if N is odd), which amounts to swapping the left and right halves of the result of the transform. Using the standard definition of the DFT omits the sampling interval (or sampling distance) \Delta t in cases where the index corresponds to time via n \Delta t = t . To relate the DFT coefficients to the continuous Fourier transform of sampled data, the sampling interval can be included explicitly as \tilde{X}_k = \Delta t \sum_{n=0}^{N-1} x_n \cdot e^{-i2\pi \tfrac{k}{N}n} Most software libraries compute the unscaled DFT coefficients X_k , including their corresponding FFT implementations. The scaled coefficients can therefore be obtained as \tilde{X}_k = \Delta t \cdot X_k . The corresponding inverse transform then becomes: x_n = \Delta f \sum_{k=0}^{N-1} \tilde{X}_k \cdot e^{i2\pi \tfrac{k}{N} n} Where \Delta f = \frac{1}{\Delta t N} . Using the inverse discrete Fourier transform as implemented in most software libraries, this can equivalently be written as: x_n = \frac{1}{\Delta t} \operatorname{IDFT}(\tilde{X}) When applying the DFT to physical data, the sampling interval \Delta t (or equivalently \Delta f ) is an essential part of the signal definition. Including the sampling interval ensures correct amplitude, energy, and frequency interpretation, particularly when combining or comparing data from different sources. ===Interpretations=== and the discrete Fourier transform. Left: A continuous function (top) and its Fourier transform (bottom). Center-left: Periodic summation of the original function (top). Fourier transform (bottom) is zero except at discrete points. The inverse transform is a sum of sinusoids called Fourier series. Center-right: Original function is discretized (multiplied by a Dirac comb) (top). Its Fourier transform (bottom) is a periodic summation (DTFT) of the original transform. Right: The DFT (bottom) computes discrete samples of the continuous DTFT. The inverse DFT (top) is a periodic summation of the original samples. The FFT algorithm computes one cycle of the DFT and its inverse is one cycle of the DFT inverse. integral and (b) the DFT summation . Its similarities to the original transform, S(f), and its relative computational ease are often the motivation for computing a DFT sequence. The DFT can be regarded as transforming a finite sequence of equally-spaced samples of a function into a same-length sequence of equally-spaced samples of the discrete-time Fourier transform (DTFT), which is a complex-valued function of frequency. The interval at which the DTFT is sampled is the reciprocal of the duration of the input sequence. An inverse DFT (IDFT) is a Fourier series, using the DTFT samples as coefficients of complex sinusoids at the corresponding DTFT frequencies. It has the same sample-values as the original input sequence. The DFT is therefore said to be a frequency domain representation of the original input sequence. If the original sequence spans all the non-zero values of a function, its DTFT is continuous (and periodic), and the DFT provides discrete samples of one cycle. If the original sequence is one cycle of a periodic function, the DFT provides all the non-zero values of one DTFT cycle. can be interpreted or derived in various ways, for example:{{unordered list| | It completely describes the discrete-time Fourier transform (DTFT) of an N -periodic sequence, which comprises only discrete frequency components. (Using the DTFT with periodic data) | It can also provide uniformly spaced samples of the continuous DTFT of a finite length sequence. ( ) | It is the cross correlation of the input sequence, x_n , and a complex sinusoid at frequency \frac{k}{N}. Thus it acts like a matched filter for that frequency. | It is the discrete analog of the formula for the coefficients of a Fourier series: C_k = \frac{1}{P}\int_P x(t)e^{-i 2\pi \tfrac{k}{P} t}\, dt. }} ==Example== This example demonstrates how to apply the DFT to a sequence of length N = 4 and the input vector \mathbf{x} = \begin{pmatrix} x_0 \\ x_1 \\ x_2 \\ x_3 \end{pmatrix} = \begin{pmatrix} 1 \\ 2-i \\ -i \\ -1+2i \end{pmatrix}. Calculating the DFT of \mathbf{x} using \begin{align} X_0 &= e^{-i 2 \pi 0 \cdot 0 / 4} \cdot 1 + e^{-i 2 \pi 0 \cdot 1 / 4} \cdot (2-i) + e^{-i 2 \pi 0 \cdot 2 / 4} \cdot (-i) + e^{-i 2 \pi 0 \cdot 3 / 4} \cdot (-1+2i) = 2 \\ X_1 &= e^{-i 2 \pi 1 \cdot 0 / 4} \cdot 1 + e^{-i 2 \pi 1 \cdot 1 / 4} \cdot (2-i) + e^{-i 2 \pi 1 \cdot 2 / 4} \cdot (-i) + e^{-i 2 \pi 1 \cdot 3 / 4} \cdot (-1+2i) = -2-2i \\ X_2 &= e^{-i 2 \pi 2 \cdot 0 / 4} \cdot 1 + e^{-i 2 \pi 2 \cdot 1 / 4} \cdot (2-i) + e^{-i 2 \pi 2 \cdot 2 / 4} \cdot (-i) + e^{-i 2 \pi 2 \cdot 3 / 4} \cdot (-1+2i) = -2i \\ X_3 &= e^{-i 2 \pi 3 \cdot 0 / 4} \cdot 1 + e^{-i 2 \pi 3 \cdot 1 / 4} \cdot (2-i) + e^{-i 2 \pi 3 \cdot 2 / 4} \cdot (-i) + e^{-i 2 \pi 3 \cdot 3 / 4} \cdot (-1+2i) = 4+4i \end{align} results in \mathbf{X} = \begin{pmatrix} X_0 \\ X_1 \\ X_2 \\ X_3 \end{pmatrix} = \begin{pmatrix} 2 \\ -2-2i \\ -2i \\ 4+4i \end{pmatrix}. ==Properties== ===Linearity=== The DFT is a linear transform, i.e. if \mathcal{F}(\{x_n\})_k=X_k and \mathcal{F}(\{y_n\})_k=Y_k , then for any complex numbers a,b : \mathcal{F}(\{a x_n + b y_n\})_k=a X_k + b Y_k ===Time and frequency reversal=== Reversing the time (i.e. replacing n by N-n ) in x_n corresponds to reversing the frequency (i.e. k by N-k ). Mathematically, if \{x_n\} represents the vector x then if \mathcal{F}(\{x_n\})_k=X_k then \mathcal{F}(\{ x_{N-n} \})_k=X_{N-k} ===Conjugation in time=== If \mathcal{F}(\{x_n\})_k = X_k then \mathcal{F}(\{ x_n^* \})_k = X_{N-k}^* . ===Real and imaginary part=== This table shows some mathematical operations on x_n in the time domain and the corresponding effects on its DFT X_k in the frequency domain. The vectors u_k = \left[\left. e^{ \frac{i 2\pi}{N} kn} \;\right|\; n=0,1,\ldots,N-1 \right]^\mathsf{T} , for k=0,1,\ldots,N-1 , form an orthogonal basis over the set of N-dimensional complex vectors: u^\mathsf{T}_k u_{k'}^* = \sum_{n=0}^{N-1} \left(e^{ \frac{i 2\pi}{N} kn}\right) \left(e^{\frac{i 2\pi}{N} (-k')n}\right) = \sum_{n=0}^{N-1} e^{ \frac{i 2\pi}{N} (k-k') n} = N~\delta_{kk'} where \delta_{kk'} is the Kronecker delta. (In the last step, the summation is trivial if k=k' , where it is and otherwise is a geometric series that can be explicitly summed to obtain zero.) This orthogonality condition can be used to derive the formula for the IDFT from the definition of the DFT, and is equivalent to the unitarity property below. \sum_{n=0}^{N-1} x_n y^*_n = \frac{1}{N} \sum_{k=0}^{N-1} X_k Y^*_k where the star denotes complex conjugation. The Plancherel theorem is a special case of Parseval's theorem and states: \sum_{n=0}^{N-1} |x_n|^2 = \frac{1}{N} \sum_{k=0}^{N-1} |X_k|^2. These theorems are also equivalent to the unitary condition below. ===Periodicity=== The periodicity can be shown directly from the definition: X_{k+N} \ \triangleq \ \sum_{n=0}^{N-1} x_n e^{-\frac{i 2\pi}{N} (k+N) n} = \sum_{n=0}^{N-1} x_n e^{-\frac{i 2\pi}{N} k n} \underbrace{e^{-i 2 \pi n}}_{1} = \sum_{n=0}^{N-1} x_n e^{-\frac{i 2\pi}{N} k n} = X_k. Similarly, it can be shown that the IDFT formula leads to a periodic extension of x_n . ===Shift theorem=== Multiplying x_n by a linear phase e^{\frac{i 2\pi}{N} nm} for some integer m corresponds to a circular shift of the output X_k : X_k is replaced by X_{k-m} , where the subscript is interpreted modulo N (i.e., periodically). Similarly, a circular shift of the input x_n corresponds to multiplying the output X_k by a linear phase. Mathematically, if \{x_n\} represents the vector x then if \mathcal{F}(\{x_n\})_k=X_k then \mathcal{F}\left(\left\{ x_n \cdot e^{\frac{i 2\pi}{N}n m} \right\}\right)_k=X_{k-m} and \mathcal{F}\left(\left\{x_{n-m}\right\}\right)_k=X_k \cdot e^{-\frac{i 2\pi}{N}k m} ===Circular convolution theorem and cross-correlation theorem=== The convolution theorem for the discrete-time Fourier transform (DTFT) indicates that a convolution of two sequences can be obtained as the inverse transform of the product of the individual transforms. An important simplification occurs when one of sequences is N-periodic, denoted here by y_{_N}, because \scriptstyle \text{DTFT} \displaystyle \{y_{_N}\} is non-zero at only discrete frequencies (see ), and therefore so is its product with the continuous function \scriptstyle \text{DTFT} \displaystyle \{x\}. That leads to a considerable simplification of the inverse transform. x * y_{_N}\ =\ \scriptstyle{\rm DTFT}^{-1} \displaystyle \left[\scriptstyle{\rm DTFT} \displaystyle \{x\}\cdot \scriptstyle{\rm DTFT} \displaystyle \{y_{_N}\}\right]\ =\ \scriptstyle{\rm DFT}^{-1} \displaystyle \left[\scriptstyle{\rm DFT} \displaystyle \{x_{_N}\}\cdot \scriptstyle{\rm DFT} \displaystyle \{y_{_N}\}\right], where x_{_N} is a periodic summation of the x sequence: (x_{_N})_n\ \triangleq \sum_{m=-\infty}^{\infty} x_{(n-mN)}. Customarily, the DFT and inverse DFT summations are taken over the domain [0,N-1] . Defining those DFTs as X and Y , the result is: (x * y_{_N})_n \triangleq \sum_{\ell=-\infty}^{\infty}x_\ell \cdot (y_{_N})_{n-\ell} = \underbrace{\mathcal{F}^{-1}}_{\rm DFT^{-1}} \left \{ X\cdot Y \right \}_n. In practice, the x sequence is usually length N or less, and y_{_N} is a periodic extension of an N-length y -sequence, which can also be expressed as a circular function: (y_{_N})_n = \sum_{p=-\infty}^\infty y_{(n-pN)} = y_{(n\operatorname{mod}N)}, \quad n\in\mathbb{Z}. Then the convolution can be written as: {{Equation box 1|title= |indent =: |cellpadding= 6 |border |border colour = #0073CF |background colour=#F5FFFA |equation = \mathcal{F}^{-1} \left \{ X\cdot Y \right \}_n = \sum_{\ell=0}^{N-1}x_\ell \cdot y_{_{(n-\ell)\operatorname{mod}N}} }} which gives rise to the interpretation as a circular convolution of x and y. It is often used to efficiently compute their linear convolution. (see Circular convolution, Fast convolution algorithms, and Overlap-save) Similarly, the cross-correlation of x and y_{_N} is given by: (x \star y_{_N})_n \triangleq \sum_{\ell=-\infty}^{\infty} x_\ell^* \cdot (y_{_N})_{n+\ell} = \mathcal{F}^{-1} \left \{ X^* \cdot Y \right \}_n. \sum_{n=0}^{N-1} x_n \cdot y_n \cdot e^{-i \frac{2\pi}{N} k n} =\frac{1}{N} (\mathbf{X * Y_N})_k, which is the circular convolution of \mathbf{X} and \mathbf{Y} . ===Trigonometric interpolation polynomial=== The trigonometric interpolation polynomial p(t) = \begin{cases} \displaystyle\frac{1}{N} \left[ \begin{alignat}{3} X_0 + X_1 e^{i 2\pi t} + \cdots &+ X_{\frac{N}{2}-1} e^{i 2\pi\big(\!\frac{N}{2}-1\!\big) t} &\\ &+ X_{\frac{N}{2}} \cos(N\pi t) &\\ &+ X_{\frac{N}{2}+1} e^{-i 2\pi\big(\!\frac{N}{2}-1\!\big) t} &+ \cdots + X_{N-1} e^{-i 2\pi t} \end{alignat} \right] & N\text{ even} \\ \displaystyle\frac{1}{N} \left[ \begin{alignat}{3} X_0 + X_1 e^{i 2\pi t} + \cdots &+ X_{\frac{N-1}{2}} e^{i 2\pi\frac{N-1}{2} t} &\\ &+ X_{\frac{N+1}{2}} e^{-i 2\pi\frac{N-1}{2} t} &+ \cdots + X_{N-1} e^{-i 2\pi t} \end{alignat} \right] & N\text{ odd} \end{cases} where the coefficients X k are given by the DFT of x n above, satisfies the interpolation property p(n/N) = x_n for n = 0, \ldots, N-1 . For even N, notice that the Nyquist component \frac{X_{N/2}}{N} \cos(N\pi t) is handled specially. This interpolation is not unique: aliasing implies that one could add N to any of the complex-sinusoid frequencies (e.g. changing e^{-it} to e^{i(N-1)t} ) without changing the interpolation property, but giving different values in between the x_n points. The choice above, however, is typical because it has two useful properties. First, it consists of sinusoids whose frequencies have the smallest possible magnitudes: the interpolation is bandlimited. Second, if the x_n are real numbers, then p(t) is real as well. In contrast, the most obvious trigonometric interpolation polynomial is the one in which the frequencies range from 0 to N-1 (instead of roughly -N/2 to +N/2 as above), similar to the inverse DFT formula. This interpolation does not minimize the slope, and is not generally real-valued for real x_n ; its use is a common mistake. \mathbf{F} = \begin{bmatrix} \omega_N^{0 \cdot 0} & \omega_N^{0 \cdot 1} & \cdots & \omega_N^{0 \cdot (N-1)} \\ \omega_N^{1 \cdot 0} & \omega_N^{1 \cdot 1} & \cdots & \omega_N^{1 \cdot (N-1)} \\ \vdots & \vdots & \ddots & \vdots \\ \omega_N^{(N-1) \cdot 0} & \omega_N^{(N-1) \cdot 1} & \cdots & \omega_N^{(N-1) \cdot (N-1)} \\ \end{bmatrix} where \omega_N = e^{-i 2 \pi/N} is a primitive Nth root of unity. For example, in the case when N = 2 , \omega_N = e^{-i \pi}=-1 , and \mathbf{F} = \begin{bmatrix} 1 & 1 \\ 1 & -1 \\ \end{bmatrix}, (which is a Hadamard matrix) or when N = 4 as in the above, \omega_N = e^{-i \pi/2}=-i , and \mathbf{F} = \begin{bmatrix} 1 & 1 & 1 & 1 \\ 1 & -i & -1 & i \\ 1 & -1 & 1 & -1 \\ 1 & i & -1 & -i \\ \end{bmatrix}. The inverse transform is then given by the inverse of the above matrix, \mathbf{F}^{-1}=\frac{1}{N}\mathbf{F}^* With unitary normalization constants 1/\sqrt{N} , the DFT becomes a unitary transformation, defined by a unitary matrix: \begin{align} \mathbf{U} &= \frac{1}{\sqrt{N}}\mathbf{F} \\ \mathbf{U}^{-1} &= \mathbf{U}^* \\ \left|\det(\mathbf{U})\right| &= 1 \end{align} where \det() is the determinant function. The determinant is the product of the eigenvalues, which are always \pm 1 or \pm i as described below. In a real vector space, a unitary transformation can be thought of as simply a rigid rotation of the coordinate system, and all of the properties of a rigid rotation can be found in the unitary DFT. The orthogonality of the DFT is now expressed as an orthonormality condition (which arises in many areas of mathematics as described in root of unity): \sum_{m=0}^{N-1}U_{km}U_{mn}^* = \delta_{kn} If X is defined as the unitary DFT of the vector x, then X_k = \sum_{n=0}^{N-1} U_{kn} x_n and the Parseval's theorem is expressed as \sum_{n=0}^{N-1}x_n y_n^* = \sum_{k=0}^{N-1}X_k Y_k^* If we view the DFT as just a coordinate transformation which simply specifies the components of a vector in a new coordinate system, then the above is just the statement that the dot product of two vectors is preserved under a unitary DFT transformation. For the special case \mathbf{x} = \mathbf{y} , this implies that the length of a vector is preserved as well — this is just Plancherel theorem, \sum_{n=0}^{N-1} |x_n|^2 = \sum_{k=0}^{N-1} |X_k|^2 A consequence of the circular convolution theorem is that the DFT matrix diagonalizes any circulant matrix. \mathcal{F}^{-1}(\{x_n\}) = \frac{1}{N}\mathcal{F}(\{x_{N - n}\}) (As usual, the subscripts are interpreted modulo N; thus, for n = 0 , we have x_{N-0} = x_0 .) Second, one can also conjugate the inputs and outputs: \mathcal{F}^{-1}(\mathbf{x}) = \frac{1}{N}\mathcal{F}\left(\mathbf{x}^*\right)^* Third, a variant of this conjugation trick, which is sometimes preferable because it requires no modification of the data values, involves swapping real and imaginary parts (which can be done on a computer simply by modifying pointers). Define \operatorname{swap}(x_n) as x_n with its real and imaginary parts swapped—that is, if x_n = a + b i then \operatorname{swap}(x_n) is b + a i . Equivalently, \operatorname{swap}(x_n) equals i x_n^* . Then \mathcal{F}^{-1}(\mathbf{x}) = \frac{1}{N}\operatorname{swap}(\mathcal{F}(\operatorname{swap}(\mathbf{x}))) That is, the inverse transform is the same as the forward transform with the real and imaginary parts swapped for both input and output, up to a normalization. The conjugation trick can also be used to define a new transform, closely related to the DFT, that is involutory—that is, which is its own inverse. In particular, T(\mathbf{x}) = \mathcal{F}\left(\mathbf{x}^*\right) / \sqrt{N} is clearly its own inverse: T(T(\mathbf{x})) = \mathbf{x} . A closely related involutory transformation (by a factor of \frac{1 + i}{\sqrt{2}} ) is H(\mathbf{x}) = \mathcal{F}\left((1 + i) \mathbf{x}^*\right) / \sqrt{2N} , since the (1 + i) factors in H(H(\mathbf{x})) cancel the 2. For real inputs \mathbf{x} , the real part of H(\mathbf{x}) is none other than the discrete Hartley transform, which is also involutory. \mathbf{U}_{m,n} = \frac 1{\sqrt{N}}\omega_N^{(m-1)(n-1)} = \frac 1{\sqrt{N}}e^{-\frac{i 2\pi}N (m-1)(n-1)}. This matrix satisfies the matrix polynomial equation: \mathbf{U}^4 = \mathbf{I}. This can be seen from the inverse properties above: operating \mathbf{U} twice gives the original data in reverse order, so operating \mathbf{U} four times gives back the original data and is thus the identity matrix. This means that the eigenvalues \lambda satisfy the equation: \lambda^4 = 1. Therefore, the eigenvalues of \mathbf{U} are the fourth roots of unity: \lambda is +1, −1, +i, or −i. Since there are only four distinct eigenvalues for this N\times N matrix, they have some multiplicity. The multiplicity gives the number of linearly independent eigenvectors corresponding to each eigenvalue. (There are N independent eigenvectors; a unitary matrix is never defective.) The problem of their multiplicity was solved by McClellan and Parks (1972), although it was later shown to have been equivalent to a problem solved by Gauss (Dickinson and Steiglitz, 1982). The multiplicity depends on the value of N modulo 4, and is given by the following table: Otherwise stated, the characteristic polynomial of \mathbf{U} is: \det (\lambda I - \mathbf{U})= (\lambda-1)^{\left\lfloor \tfrac {N+4}{4}\right\rfloor} (\lambda+1)^{\left\lfloor \tfrac {N+2}{4}\right\rfloor} (\lambda+i)^{\left\lfloor \tfrac {N+1}{4}\right\rfloor} (\lambda-i)^{\left\lfloor \tfrac {N-1}{4}\right\rfloor}. No simple analytical formula for general eigenvectors is known. Moreover, the eigenvectors are not unique because any linear combination of eigenvectors for the same eigenvalue is also an eigenvector for that eigenvalue. Various researchers have proposed different choices of eigenvectors, selected to satisfy useful properties like orthogonality and to have "simple" forms (e.g., McClellan and Parks, 1972; Dickinson and Steiglitz, 1982; Grünbaum, 1982; Candan et al., 2000; Hanna et al., 2004; Gurevich and Hadani, 2008). One method to construct DFT eigenvectors to an eigenvalue \lambda is based on the linear combination of operators: \mathcal{P}_\lambda=\frac{1}{4}\left( \mathbf{I}+\lambda^{-1}\mathbf{U}+\lambda^{-2}\mathbf{U}^2+\lambda^{-3} \mathbf{U}^3\right) For an arbitrary vector \mathbf{v} , vector \mathbf{u}(\lambda)=\mathcal{P}_{\lambda}\mathbf{v} satisfies: \textbf{U}\mathbf{u}(\lambda)=\lambda \mathbf{u}(\lambda) hence, vector \mathbf{u}(\lambda) is, indeed, the eigenvector of DFT matrix \mathbf{U} . Operators \mathcal{P}_{\lambda} project vectors onto subspaces which are orthogonal for each value of \lambda . That is, for two eigenvectors, \mathbf{u}(\lambda)=\mathcal{P}_{\lambda}\mathbf{v} and \mathbf{u}'(\lambda')=\mathcal{P}_{\lambda'}\mathbf{v}' we have: \mathbf{u}^\dagger(\lambda) \mathbf{u}'(\lambda')= \delta_{\lambda\lambda'}\mathbf{u}^\dagger(\lambda) \mathbf{v}' However, in general, projection operator method does not produce orthogonal eigenvectors within one subspace. The operator \mathcal{P}_{\lambda} can be seen as a matrix, whose columns are eigenvectors of \mathbf{U} , but they are not orthogonal. When a set of vectors \{\mathbf{v}_n\}_{n=1,\dots,N_{\lambda}} , spanning N_{\lambda} -dimensional space (where N_{\lambda} is the multiplicity of eigenvalue \lambda ) is chosen to generate the set of eigenvectors \{\mathbf{u}_n(\lambda)=\mathcal{P}_{\lambda}\mathbf{v}_n\}_{n=1,\dots,N_{\lambda}} to eigenvalue \lambda , the mutual orthogonality of \mathbf{u}_n(\lambda) is not guaranteed. However, the orthogonal set can be obtained by further applying orthogonalization algorithm to the set \{\mathbf{u}_n(\lambda)\}_{n=1,\dots,N_{\lambda}} , e.g. Gram-Schmidt process. A straightforward approach to obtain DFT eigenvectors is to discretize an eigenfunction of the continuous Fourier transform, of which the most famous is the Gaussian function. Since periodic summation of the function means discretizing its frequency spectrum and discretization means periodic summation of the spectrum, the discretized and periodically summed Gaussian function yields an eigenvector of the discrete transform: F(m) = \sum_{k\in\mathbb{Z}} \exp\left(-\frac{\pi\cdot(m+N\cdot k)^2}{N}\right). The closed form expression for the series can be expressed by Jacobi theta functions as F(m) = \frac1{\sqrt{N}}\vartheta_3\left(\frac{\pi m}N, \exp\left(-\frac{\pi}N \right)\right). Several other simple closed-form analytical eigenvectors for special DFT period N were found (Casper-Yakimov, 2024): For DFT period N = 2L + 1 = 4K + 1, where K is an integer, the following is an eigenvector of DFT: F(m) = \prod_{s=K+1}^L \left[\cos\left(\frac{2\pi}{N}m\right) - \cos\left(\frac{2\pi}{N}s\right)\right] For DFT period N = 2L = 4K, where K is an integer, the following are eigenvectors of DFT: F(m) = \sin\left(\frac{2\pi}{N}m\right) \prod_{s=K+1}^{L-1}\left[\cos\left(\frac{2\pi}{N}m\right)- \cos\left(\frac{2\pi}{N}s\right)\right] F(m) = \cos\left(\frac{\pi}{N}m\right)\prod_{s=K+1}^{3K-1} \sin\left(\frac{\pi(s-m)}{N}\right) For DFT period N = 4K - 1, where K is an integer, the following are eigenvectors of DFT: F(m) = \sin\left(\frac{2\pi}{N}m\right)\prod_{s=K+1}^{3K-2} \sin\left(\frac{\pi(s-m)}{N}\right) F(m) = \left(\cos\left(\frac{2\pi}{N}m\right)-\cos\left(\frac{2\pi}{N} K \right) \pm \sin\left(\frac{2\pi}{N}K\right)\right)\prod_{s=K+1}^{3K-2} \sin\left(\frac{\pi(s-m)}{N}\right) The choice of eigenvectors of the DFT matrix has become important in recent years in order to define a discrete analogue of the fractional Fourier transform—the DFT matrix can be taken to fractional powers by exponentiating the eigenvalues. For the continuous Fourier transform, the natural orthogonal eigenfunctions are the Hermite functions, so various discrete analogues of these have been employed as the eigenvectors of the DFT, such as the Kravchuk polynomials. The "best" choice of eigenvectors to define a fractional discrete Fourier transform remains an open question, however. Attempts were made to perform the fractional Fourier transform using confluent Vandermonde matrix. \sum_{n=0}^{N-1} |X_n|^2 = 1 , then P_n=|X_n|^2 may be considered to represent a discrete probability mass function of , with an associated probability mass function constructed from the transformed variable, Q_m = N |x_m|^2 . For the case of continuous functions P(x) and Q(k) , the Heisenberg uncertainty principle states that D_0(X)D_0(x)\ge\frac{1}{16\pi^2} where D_0(X) and D_0(x) are the variances of |X|^2 and |x|^2 respectively, with the equality attained in the case of a suitably normalized Gaussian distribution. Although the variances may be analogously defined for the DFT, an analogous uncertainty principle is not useful, because the uncertainty will not be shift-invariant. Still, a meaningful uncertainty principle has been introduced by Massar and Spindel. However, the Hirschman entropic uncertainty will have a useful analog for the case of the DFT. The Hirschman uncertainty principle is expressed in terms of the Shannon entropy of the two probability functions. In the discrete case, the Shannon entropies are defined as H(X)=-\sum_{n=0}^{N-1} P_n\ln P_n and H(x)=-\sum_{m=0}^{N-1} Q_m\ln Q_m , and the entropic uncertainty principle becomes H(X)+H(x) \ge \ln(N) . The equality is obtained for P_n equal to translations and modulations of a suitably normalized Kronecker comb of period A where A is any exact integer divisor of N . The probability mass function Q_m will then be proportional to a suitably translated Kronecker comb of period B=N/A . x_n \in \mathbb{R} \quad \forall n \in \{0,\ldots,N-1 \} \implies X_k = X_{-k \mod N}^* \quad \forall k \in \{0,\ldots,N-1 \} , where X^*\, denotes complex conjugation. It follows that for even N X_0 and X_{N/2} are real-valued, and the remainder of the DFT is completely specified by just N/2-1 complex numbers. If x_0, \ldots, x_{N-1} are purely imaginary numbers, then the DFT X_0, \ldots, X_{N-1} is odd symmetric: x_n \in i \mathbb{R} \quad \forall n \in \{0,\ldots,N-1 \} \implies X_k = -X_{-k \mod N}^* \quad \forall k \in \{0,\ldots,N-1 \} , where X^*\, denotes complex conjugation. ==Generalized DFT (shifted and non-linear phase)== It is possible to shift the transform sampling in time and/or frequency domain by some real shifts a and b, respectively. This is sometimes known as a generalized DFT (or GDFT), also called the shifted DFT or offset DFT, and has analogous properties to the ordinary DFT: X_k = \sum_{n=0}^{N-1} x_n e^{-\frac{i 2 \pi}{N} (k+b) (n+a)} \quad \quad k = 0, \dots, N-1. Most often, shifts of 1/2 (half a sample) are used. While the ordinary DFT corresponds to a periodic signal in both time and frequency domains, a=1/2 produces a signal that is anti-periodic in frequency domain ( X_{k+N} = - X_k ) and vice versa for b=1/2 . Thus, the specific case of a = b = 1/2 is known as an odd-time odd-frequency discrete Fourier transform (or O 2 DFT). Such shifted transforms are most often used for symmetric data, to represent different boundary symmetries, and for real-symmetric data they correspond to different forms of the discrete cosine and sine transforms. Another interesting choice is a=b=-(N-1)/2 , which is called the centered DFT (or CDFT). The centered DFT has the useful property that, when N is a multiple of four, all four of its eigenvalues (see above) have equal multiplicities. The term GDFT is also used for the non-linear phase extensions of DFT. Hence, GDFT method provides a generalization for constant amplitude orthogonal block transforms including linear and non-linear phase types. GDFT is a framework to improve time and frequency domain properties of the traditional DFT, e.g. auto/cross-correlations, by the addition of the properly designed phase shaping function (non-linear, in general) to the original linear phase functions. The discrete Fourier transform can be viewed as a special case of the z-transform, evaluated on the unit circle in the complex plane; more general z-transforms correspond to complex shifts a and b above. ==Multidimensional DFT== The ordinary DFT transforms a one-dimensional sequence or array x_n that is a function of exactly one discrete variable n. The multidimensional DFT of a multidimensional array x_{n_1, n_2, \dots, n_d} that is a function of d discrete variables n_\ell = 0, 1, \dots, N_\ell-1 for \ell in 1, 2, \dots, d is defined by: X_{k_1, k_2, \dots, k_d} = \sum_{n_1=0}^{N_1-1} \left(\omega_{N_1}^{~k_1 n_1} \sum_{n_2=0}^{N_2-1} \left( \omega_{N_2}^{~k_2 n_2} \cdots \sum_{n_d=0}^{N_d-1} \omega_{N_d}^{~k_d n_d}\cdot x_{n_1, n_2, \dots, n_d} \right) \right) , where \omega_{N_\ell} = \exp(-i 2\pi/N_\ell) as above and the d output indices run from k_\ell = 0, 1, \dots, N_\ell-1 . This is more compactly expressed in vector notation, where we define \mathbf{n} = (n_1, n_2, \dots, n_d) and \mathbf{k} = (k_1, k_2, \dots, k_d) as d-dimensional vectors of indices from 0 to \mathbf{N} - 1 , which we define as \mathbf{N} - 1 = (N_1 - 1, N_2 - 1, \dots, N_d - 1) : X_\mathbf{k} = \sum_{\mathbf{n}=\mathbf{0}}^{\mathbf{N}-1} e^{-i 2\pi \mathbf{k} \cdot (\mathbf{n} / \mathbf{N})} x_\mathbf{n} \, , where the division \mathbf{n} / \mathbf{N} is defined as \mathbf{n} / \mathbf{N} = (n_1/N_1, \dots, n_d/N_d) to be performed element-wise, and the sum denotes the set of nested summations above. The inverse of the multi-dimensional DFT is, analogous to the one-dimensional case, given by: x_\mathbf{n} = \frac{1}{\prod_{\ell=1}^d N_\ell} \sum_{\mathbf{k}=\mathbf{0}}^{\mathbf{N}-1} e^{i 2\pi \mathbf{n} \cdot (\mathbf{k} / \mathbf{N})} X_\mathbf{k} \, . As the one-dimensional DFT expresses the input x_n as a superposition of sinusoids, the multidimensional DFT expresses the input as a superposition of plane waves, or multidimensional sinusoids. The direction of oscillation in space is \mathbf{k} / \mathbf{N} . The amplitudes are X_\mathbf{k} . This decomposition is of great importance for everything from digital image processing (two-dimensional) to solving partial differential equations. The solution is broken up into plane waves. The multidimensional DFT can be computed by the composition of a sequence of one-dimensional DFTs along each dimension. In the two-dimensional case x_{n_1,n_2} the N_1 independent DFTs of the rows (i.e., along n_2 ) are computed first to form a new array y_{n_1,k_2} . Then the N_2 independent DFTs of y along the columns (along n_1 ) are computed to form the final result X_{k_1,k_2} . Alternatively the columns can be computed first and then the rows. The order is immaterial because the nested summations above commute. An algorithm to compute a one-dimensional DFT is thus sufficient to efficiently compute a multidimensional DFT. This approach is known as the row-column algorithm. There are also intrinsically multidimensional FFT algorithms. X_{k_1, k_2, \dots, k_d} = X_{N_1 - k_1, N_2 - k_2, \dots, N_d - k_d}^* , where the star again denotes complex conjugation and the \ell -th subscript is again interpreted modulo N_\ell (for \ell = 1,2,\ldots,d ). ===Data compression=== The field of digital signal processing relies heavily on operations in the frequency domain (i.e. on the Fourier transform). For example, several lossy image and sound compression methods employ the discrete Fourier transform: the signal is cut into short segments, each is transformed, and then the Fourier coefficients of high frequencies, which are assumed to be unnoticeable, are discarded. The decompressor computes the inverse transform based on this reduced number of Fourier coefficients. (Compression applications often use a specialized form of the DFT, the discrete cosine transform or sometimes the modified discrete cosine transform.) Some relatively recent compression algorithms, however, use wavelet transforms, which give a more uniform compromise between time and frequency domain than obtained by chopping data into segments and transforming each segment. In the case of JPEG2000, this avoids the spurious image features that appear when images are highly compressed with the original JPEG. ===Partial differential equations=== Discrete Fourier transforms are often used to solve partial differential equations, where again the DFT is used as an approximation for the Fourier series (which is recovered in the limit of infinite N). The advantage of this approach is that it expands the signal in complex exponentials e^{inx} , which are eigenfunctions of differentiation: {\text{d} \big( e^{inx} \big) }/\text{d}x = in e^{inx} . Thus, in the Fourier representation, differentiation is simple—we just multiply by in . (However, the choice of n is not unique due to aliasing; for the method to be convergent, a choice similar to that in the trigonometric interpolation section above should be used.) A linear differential equation with constant coefficients is transformed into an easily solvable algebraic equation. One then uses the inverse DFT to transform the result back into the ordinary spatial representation. Such an approach is called a spectral method. ===Polynomial multiplication=== Suppose we wish to compute the polynomial product c(x) = a(x) · b(x). The ordinary product expression for the coefficients of c involves a linear (acyclic) convolution, where indices do not "wrap around." This can be rewritten as a cyclic convolution by taking the coefficient vectors for a(x) and b(x) with constant term first, then appending zeros so that the resultant coefficient vectors a and b have dimension . Then, \mathbf{c} = \mathbf{a} * \mathbf{b} Where c is the vector of coefficients for c(x), and the convolution operator *\, is defined so c_n = \sum_{m=0}^{d-1}a_m b_{n-m\ \mathrm{mod}\ d} \qquad\qquad\qquad n=0,1,\dots,d-1 But convolution becomes multiplication under the DFT: \mathcal{F}(\mathbf{c}) = \mathcal{F}(\mathbf{a})\mathcal{F}(\mathbf{b}) Here the vector product is taken elementwise. Thus the coefficients of the product polynomial c(x) are just the terms 0, ..., deg(a(x)) + deg(b(x)) of the coefficient vector \mathbf{c} = \mathcal{F}^{-1}(\mathcal{F}(\mathbf{a})\mathcal{F}(\mathbf{b})). With a fast Fourier transform, the resulting algorithm takes O(N log N) arithmetic operations. Due to its simplicity and speed, the Cooley–Tukey FFT algorithm, which is limited to composite sizes, is often chosen for the transform operation. In this case, d should be chosen as the smallest integer greater than the sum of the input polynomial degrees that is factorizable into small prime factors (e.g. 2, 3, and 5, depending upon the FFT implementation). ====Multiplication of large integers==== The fastest known algorithms for the multiplication of very large integers use the polynomial multiplication method outlined above. Integers can be treated as the value of a polynomial evaluated specifically at the number base, with the coefficients of the polynomial corresponding to the digits in that base (ex. 123 = 1 \cdot 10^2 + 2 \cdot 10^1 + 3 \cdot 10^0 ). After polynomial multiplication, a relatively low-complexity carry-propagation step completes the multiplication. ==Some discrete Fourier transform pairs== ==Generalizations== Many of the properties of the DFT only depend on the fact that e^{-\frac{i 2 \pi}{N}} is a primitive root of unity, sometimes denoted \omega_N or W_N (so that \omega_N^N = 1 ). Such properties include the completeness, orthogonality, Plancherel/Parseval, periodicity, shift, convolution, and unitarity properties above, as well as many FFT algorithms. For this reason, the discrete Fourier transform can be defined by using roots of unity in fields other than the complex numbers, and such generalizations are commonly called number-theoretic transforms (NTTs) in the case of finite fields. For more information, see number-theoretic transform and discrete Fourier transform (general). ==Alternatives== There are various alternatives to the DFT for various applications, prominent among which are wavelets. The analog of the DFT is the discrete wavelet transform (DWT). From the point of view of time–frequency analysis, a key limitation of the Fourier transform is that it does not include location information, only frequency information, and thus has difficulty in representing transients. As wavelets have location as well as frequency, they are better able to represent location, at the expense of greater difficulty representing frequency. For details, see comparison of the discrete wavelet transform with the discrete Fourier transform. ==See also== Companion matrix DFT matrix Fast Fourier transform FFTPACK Fastest Fourier Transform in the West Generalizations of Pauli matrices Least-squares spectral analysis List of Fourier-related transforms Multidimensional transform Zak transform Quantum Fourier transform ==Notes== ==References== ==Further reading== esp. section 30.2: The DFT and FFT, pp. 830–838. (Note that this paper has an apparent typo in its table of the eigenvalue multiplicities: the +i/−i columns are interchanged. The correct table can be found in McClellan and Parks, 1972, and is easily confirmed numerically.) ==External links== Interactive explanation of the DFT Matlab tutorial on the Discrete Fourier Transformation Interactive flash tutorial on the DFT Mathematics of the Discrete Fourier Transform by Julius O. Smith III FFTW: Fast implementation of the DFT - coded in C and under General Public License (GPL) General Purpose FFT Package: Yet another fast DFT implementation in C & FORTRAN, permissive license Explained: The Discrete Fourier Transform Discrete Fourier Transform Indexing and shifting of Discrete Fourier Transform Discrete Fourier Transform Properties Generalized Discrete Fourier Transform (GDFT) with Nonlinear Phase cs:Fourierova transformace#Diskrétní Fourierova transformace pt:Transformada de Fourier#Transformada discreta de Fourier fi:Fourier'n muunnos#Diskreetti Fourier'n muunnos

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Discrete Fourier transform". 1789758723. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1375607305

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·