Non-uniform discrete Fourier transform

In applied mathematics, the non-uniform discrete Fourier transform (NUDFT or NDFT) of a signal is a type of Fourier transform, related to a discrete Fourier transform or discrete-time Fourier transform, but in which the input signal is not sampled at equally spaced points or frequencies (or both). It is a generalization of the shifted DFT. It has important applications in signal processing,[1] magnetic resonance imaging,[2] and the numerical solution of partial differential equations.[3]

As a generalized approach for nonuniform sampling, the NUDFT allows one to obtain frequency domain information of a finite length signal at any frequency. One of the reasons to adopt the NUDFT is that many signals have their energy distributed nonuniformly in the frequency domain. Therefore, a nonuniform sampling scheme could be more convenient and useful in many digital signal processing applications. For example, the NUDFT provides a variable spectral resolution controlled by the user.

Definition

The nonuniform discrete Fourier transform transforms a sequence of N {\displaystyle N} complex numbers x 0 , , x N 1 {\displaystyle x_{0},\ldots ,x_{N-1}} into another sequence of complex numbers X 0 , , X N 1 {\displaystyle X_{0},\ldots ,X_{N-1}} defined by

X k = n = 0 N 1 x n e 2 π i p n f k , 0 k N 1 , {\displaystyle X_{k}=\sum _{n=0}^{N-1}x_{n}e^{-2\pi ip_{n}f_{k}},\quad 0\leq k\leq N-1,}

 

 

 

 

(1)

where p 0 , , p N 1 [ 0 , 1 ] {\displaystyle p_{0},\ldots ,p_{N-1}\in [0,1]} are sample points and f 0 , , f N 1 [ 0 , N ] {\displaystyle f_{0},\ldots ,f_{N-1}\in [0,N]} are frequencies. Note that if p n = n / N {\displaystyle p_{n}=n/N} and f k = k {\displaystyle f_{k}=k} , then equation (1) reduces to the discrete Fourier transform. There are three types of NUDFTs.[4] Note that these types are not universal and different authors will refer to different types by different numbers.

  • The nonuniform discrete Fourier transform of type I (NUDFT-I) uses uniform sample points p n = n / N {\displaystyle p_{n}=n/N} but nonuniform (i.e. non-integer) frequencies f k {\displaystyle f_{k}} . This corresponds to evaluating a generalized Fourier series at equispaced points. It is also known as NDFT[5] or forward NDFT [6][7]
  • The nonuniform discrete Fourier transform of type II (NUDFT-II) uses uniform (i.e. integer) frequencies f k = k {\displaystyle f_{k}=k} but nonuniform sample points p n {\displaystyle p_{n}} . This corresponds to evaluating a Fourier series at nonequispaced points. It is also known as adjoint NDFT.[7][6]
  • The nonuniform discrete Fourier transform of type III (NUDFT-III) uses both nonuniform sample points p n {\displaystyle p_{n}} and nonuniform frequencies f k {\displaystyle f_{k}} . This corresponds to evaluating a generalized Fourier series at nonequispaced points. It is also known as NNDFT.

A similar set of NUDFTs can be defined by substituting i {\displaystyle -i} for + i {\displaystyle +i} in equation (1). Unlike in the uniform case, however, this substitution is unrelated to the inverse Fourier transform. The inversion of the NUDFT is a separate problem, discussed below.

Multidimensional NUDFT

The multidimensional NUDFT converts a d {\displaystyle d} -dimensional array of complex numbers x n {\displaystyle x_{\mathbf {n} }} into another d {\displaystyle d} -dimensional array of complex numbers X k {\displaystyle X_{\mathbf {k} }} defined by

X k = n = 0 N 1 x n e 2 π i p n f k {\displaystyle X_{\mathbf {k} }=\sum _{\mathbf {n} =\mathbf {0} }^{\mathbf {N} -1}x_{\mathbf {n} }e^{-2\pi i\mathbf {p} _{\mathbf {n} }\cdot {\boldsymbol {f}}_{\mathbf {k} }}}

where p n [ 0 , 1 ] d {\displaystyle \mathbf {p} _{\mathbf {n} }\in [0,1]^{d}} are sample points, f k [ 0 , N 1 ] × [ 0 , N 2 ] × × [ 0 , N d ] {\displaystyle {\boldsymbol {f}}_{\mathbf {k} }\in [0,N_{1}]\times [0,N_{2}]\times \cdots \times [0,N_{d}]} are frequencies, and n = ( n 1 , n 2 , , n d ) {\displaystyle \mathbf {n} =(n_{1},n_{2},\ldots ,n_{d})} and k = ( k 1 , k 2 , , k d ) {\displaystyle \mathbf {k} =(k_{1},k_{2},\ldots ,k_{d})} are d {\displaystyle d} -dimensional vectors of indices from 0 to N 1 = ( N 1 1 , N 2 1 , , N d 1 ) {\displaystyle \mathbf {N} -1=(N_{1}-1,N_{2}-1,\ldots ,N_{d}-1)} . The multidimensional NUDFTs of types I, II, and III are defined analogously to the 1D case.[4]

Relationship to Z-transform

The NUDFT-I can be expressed as a Z-transform.[8] The NUDFT-I of a sequence x [ n ] {\displaystyle x[n]} of length N {\displaystyle N} is

X ( z k ) = X ( z ) | z = z k = n = 0 N 1 x [ n ] z k n , k = 0 , 1 , . . . , N 1 , {\displaystyle X(z_{k})=X(z)|_{z=z_{k}}=\sum _{n=0}^{N-1}x[n]z_{k}^{-n},\quad k=0,1,...,N-1,}

where X ( z ) {\displaystyle X(z)} is the Z-transform of x [ n ] {\displaystyle x[n]} , and { z i } i = 0 , 1 , . . . , N 1 {\displaystyle \{z_{i}\}_{i=0,1,...,N-1}} are arbitrarily distinct points in the z-plane. Note that the NUDFT reduces to the DFT when the sampling points are located on the unit circle at equally spaced angles.

Expressing the above as a matrix, we get

X = D x {\displaystyle \mathbf {X} =\mathbf {D} \mathbf {x} }

where

X = [ X ( z 0 ) X ( z 1 ) X ( z N 1 ) ] , x = [ x [ 0 ] x [ 1 ] x [ N 1 ] ] ,  and D = [ 1 z 0 1 z 0 2 z 0 ( N 1 ) 1 z 1 1 z 1 2 z 1 ( N 1 ) 1 z N 1 1 z N 1 2 z N 1 ( N 1 ) ] . {\displaystyle \mathbf {X} ={\begin{bmatrix}X(z_{0})\\X(z_{1})\\\vdots \\X(z_{N-1})\end{bmatrix}},\quad \mathbf {x} ={\begin{bmatrix}x[0]\\x[1]\\\vdots \\x[N-1]\end{bmatrix}},{\text{ and}}\quad \mathbf {D} ={\begin{bmatrix}1&z_{0}^{-1}&z_{0}^{-2}&\cdots &z_{0}^{-(N-1)}\\1&z_{1}^{-1}&z_{1}^{-2}&\cdots &z_{1}^{-(N-1)}\\\vdots &\vdots &\vdots &\ddots &\vdots \\1&z_{N-1}^{-1}&z_{N-1}^{-2}&\cdots &z_{N-1}^{-(N-1)}\end{bmatrix}}.}

Direct inversion of the NUDFT-I

As we can see, the NUDFT-I is characterized by D {\displaystyle \mathbf {D} } and hence the N {\displaystyle N} z k {\displaystyle {z_{k}}} points. If we further factorize det ( D ) {\displaystyle \det(\mathbf {D} )} , we can see that D {\displaystyle \mathbf {D} } is nonsingular provided the N {\displaystyle N} z k {\displaystyle {z_{k}}} points are distinct. If D {\displaystyle \mathbf {D} } is nonsingular, we can get a unique inverse NUDFT-I as follows:

x = D 1 X {\displaystyle \mathbf {x} =\mathbf {D^{-1}} \mathbf {X} } .

Given X  and  D {\displaystyle \mathbf {X} {\text{ and }}\mathbf {D} } , we can use Gaussian elimination to solve for x {\displaystyle \mathbf {x} } . However, the complexity of this method is O ( N 3 ) {\displaystyle O(N^{3})} . To solve this problem more efficiently, we first determine X ( z ) {\displaystyle X(z)} directly by polynomial interpolation:

X ^ [ k ] = X ( z k ) , k = 0 , 1 , . . . , N 1 {\displaystyle {\hat {X}}[k]=X(z_{k}),\quad k=0,1,...,N-1} .

Then x [ n ] {\displaystyle x[n]} are the coefficients of the above interpolating polynomial.

Expressing X ( z ) {\displaystyle X(z)} as the Lagrange polynomial of order N 1 {\displaystyle N-1} , we get

X ( z ) = k = 0 N 1 L k ( z ) L k ( z k ) X ^ [ k ] , {\displaystyle X(z)=\sum _{k=0}^{N-1}{\frac {L_{k}(z)}{L_{k}(z_{k})}}{\hat {X}}[k],}

where { L i ( z ) } i = 0 , 1 , . . . , N 1 {\displaystyle \{L_{i}(z)\}_{i=0,1,...,N-1}} are the fundamental polynomials:

L k ( z ) = i k ( 1 z i z 1 ) , k = 0 , 1 , . . . , N 1 {\displaystyle L_{k}(z)=\prod _{i\neq k}(1-z_{i}z^{-1}),\quad k=0,1,...,N-1} .

Expressing X ( z ) {\displaystyle X(z)} by the Newton interpolation method, we get

X ( z ) = c 0 + c 1 ( 1 z 0 z 1 ) + c 2 ( 1 z 0 z 1 ) ( 1 z 1 z 1 ) + + c N 1 k = 0 N 2 ( 1 z k z 1 ) , {\displaystyle X(z)=c_{0}+c_{1}(1-z_{0}z^{-1})+c_{2}(1-z_{0}z^{-1})(1-z_{1}z^{-1})+\cdots +c_{N-1}\prod _{k=0}^{N-2}(1-z_{k}z^{-1}),}

where c j {\displaystyle c_{j}} is the divided difference of the j {\displaystyle j} th order of X ^ [ 0 ] , X ^ [ 1 ] , . . . , X ^ [ j ] {\displaystyle {\hat {X}}[0],{\hat {X}}[1],...,{\hat {X}}[j]} with respect to z 0 , z 1 , . . . , z j {\displaystyle z_{0},z_{1},...,z_{j}} :

c 0 = X ^ [ 0 ] , {\displaystyle c_{0}={\hat {X}}[0],}
c 1 = X ^ [ 1 ] c 0 1 z 0 z 1 1 , {\displaystyle c_{1}={\frac {{\hat {X}}[1]-c_{0}}{1-z_{0}z_{1}^{-1}}},}
c 2 = X ^ [ 2 ] c 0 c 1 ( 1 z 0 z 1 ) ( 1 z 0 z 2 1 ) ( 1 z 1 z 2 1 ) , {\displaystyle c_{2}={\frac {{\hat {X}}[2]-c_{0}-c_{1}(1-z_{0}z^{-1})}{(1-z_{0}z_{2}^{-1})(1-z_{1}z_{2}^{-1})}},}
{\displaystyle \vdots }

The disadvantage of the Lagrange representation is that any additional point included will increase the order of the interpolating polynomial, leading to the need to recompute all the fundamental polynomials. However, any additional point included in the Newton representation only requires the addition of one more term.

We can use a lower triangular system to solve { c j } {\displaystyle \{c_{j}\}} :

L c = X {\displaystyle \mathbf {L} \mathbf {c} =\mathbf {X} }

where

X = [ X ^ [ 0 ] X ^ [ 1 ] X ^ [ N 1 ] ] , c = [ c 0 c 1 c N 1 ] ,  and L = [ 1 0 0 0 0 1 ( 1 z 0 z 1 1 ) 0 0 0 1 ( 1 z 0 z 2 1 ) ( 1 z 0 z 2 1 ) ( 1 z 1 z 2 1 ) 0 0 1 ( 1 z 0 z N 1 1 ) ( 1 z 0 z N 1 1 ) ( 1 z 1 z N 1 1 ) k = 0 N 2 ( 1 z k z N 1 1 ) ] . {\displaystyle \mathbf {X} ={\begin{bmatrix}{\hat {X}}[0]\\{\hat {X}}[1]\\\vdots \\{\hat {X}}[N-1]\end{bmatrix}},\quad \mathbf {c} ={\begin{bmatrix}c_{0}\\c_{1}\\\vdots \\c_{N-1}\end{bmatrix}},{\text{ and}}\quad \mathbf {L} ={\begin{bmatrix}1&0&0&0&\cdots &0\\1&(1-z_{0}z_{1}^{-1})&0&0&\cdots &0\\1&(1-z_{0}z_{2}^{-1})&(1-z_{0}z_{2}^{-1})(1-z_{1}z_{2}^{-1})&0&\cdots &0\\\vdots &\vdots &\vdots &\vdots &\ddots &\vdots \\1&(1-z_{0}z_{N-1}^{-1})&(1-z_{0}z_{N-1}^{-1})(1-z_{1}z_{N-1}^{-1})&\cdots &\prod _{k=0}^{N-2}(1-z_{k}z_{N-1}^{-1})\end{bmatrix}}.}

By the above equation, { c j } {\displaystyle \{c_{j}\}} can be computed within O ( N 2 ) {\displaystyle O(N^{2})} operations. In this way Newton interpolation is more efficient than Lagrange Interpolation unless the latter is modified by

L k + 1 ( z ) = ( 1 z k + 1 z 1 ) ( 1 z k z 1 ) L k ( z ) , k = 0 , 1 , . . . , N 1 {\displaystyle L_{k+1}(z)={\frac {(1-z_{k+1}z^{-1})}{(1-z_{k}z^{-1})}}L_{k}(z),\quad k=0,1,...,N-1} .

Nonuniform fast Fourier transform

While a naive application of equation (1) results in an O ( N 2 ) {\displaystyle O(N^{2})} algorithm for computing the NUDFT, O ( N log N ) {\displaystyle O(N\log N)} algorithms based on the fast Fourier transform (FFT) do exist. Such algorithms are referred to as NUFFTs or NFFTs and have been developed based on oversampling and interpolation,[9][10][11][12] min-max interpolation,[2] and low-rank approximation.[13] In general, NUFFTs leverage the FFT by converting the nonuniform problem into a uniform problem (or a sequence of uniform problems) to which the FFT can be applied.[4] Software libraries for performing NUFFTs are available in 1D, 2D, and 3D.[7][6][14][15][16][17]

Applications

The applications of the NUDFT include:

See also

References

  1. ^ Bagchi, Sonali; Mitra, Sanjit K. (1999). The Nonuniform Discrete Fourier Transform and Its Applications in Signal Processing. Boston, MA: Springer US. ISBN 978-1-4615-4925-3.
  2. ^ a b Fessler, J.A.; Sutton, B.P. (February 2003). "Nonuniform fast fourier transforms using min-max interpolation". IEEE Transactions on Signal Processing. 51 (2): 560–574. Bibcode:2003ITSP...51..560F. doi:10.1109/TSP.2002.807005. hdl:2027.42/85840.
  3. ^ Lee, June-Yub; Greengard, Leslie (June 2005). "The type 3 nonuniform FFT and its applications". Journal of Computational Physics. 206 (1): 1–5. Bibcode:2005JCoPh.206....1L. doi:10.1016/j.jcp.2004.12.004.
  4. ^ a b c Greengard, Leslie; Lee, June-Yub (January 2004). "Accelerating the Nonuniform Fast Fourier Transform". SIAM Review. 46 (3): 443–454. Bibcode:2004SIAMR..46..443G. CiteSeerX 10.1.1.227.3679. doi:10.1137/S003614450343200X.
  5. ^ Plonka, Gerlind; Potts, Daniel; Steidl, Gabriele; Tasche, Manfred (2019). Numerical Fourier Analysis. Birkhäuser. doi:10.1007/978-3-030-04306-3. ISBN 978-3-030-04306-3.
  6. ^ a b c PyNUFFT Services. "Basic use of PyNUFFT — PyNUFFT 2023.2.2 documentation". pynufft.readthedocs.io. Retrieved 27 February 2024.
  7. ^ a b c The Simons Foundation. "Mathematical definitions of transforms — finufft 2.2.0 documentation". finufft.readthedocs.io. Retrieved 27 February 2024.
  8. ^ Marvasti, Farokh (2001). Nonuniform Sampling: Theory and Practice. New York: Springer. pp. 325–360. ISBN 978-1-4615-1229-5.
  9. ^ Dutt, Alok (May 1993). Fast Fourier Transforms for Nonequispaced Data (PDF) (PhD). Yale University.
  10. ^ Dutt, Alok; Rokhlin, Vladimir (November 1993). "Fast Fourier Transforms for Nonequispaced Data". SIAM Journal on Scientific Computing. 14 (6): 1368–1393. doi:10.1137/0914081.
  11. ^ Potts, Daniel; Steidl, Gabriele (January 2003). "Fast Summation at Nonequispaced Knots by NFFT". SIAM Journal on Scientific Computing. 24 (6): 2013–2037. doi:10.1137/S1064827502400984.
  12. ^ Boyd, John P (December 1992). "A fast algorithm for Chebyshev, Fourier, and sinc interpolation onto an irregular grid" (PDF). Journal of Computational Physics. 103 (2): 243–257. Bibcode:1992JCoPh.103..243B. doi:10.1016/0021-9991(92)90399-J. hdl:2027.42/29694.
  13. ^ Ruiz-Antolín, Diego; Townsend, Alex (20 February 2018). "A Nonuniform Fast Fourier Transform Based on Low Rank Approximation" (PDF). SIAM Journal on Scientific Computing. 40 (1): A529–A547. arXiv:1701.04492. doi:10.1137/17M1134822. hdl:10902/13767.
  14. ^ "NUFFT page". cims.nyu.edu.
  15. ^ "NFFT". www.nfft.org.
  16. ^ "MikaelSlevinsky/FastTransforms.jl". GitHub. 2019-02-13.
  17. ^ "chebfun/chebfun". GitHub. 2019-02-07.

External links

  • Non-Uniform Fourier Transform: A Tutorial.
  • NFFT 3.0 – Tutorial
  • NUFFT software library