non-uniform discrete Fourier transform

{{Short description|Concept in applied mathematics}}

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,{{cite book|last1=Bagchi|first1=Sonali|last2=Mitra|first2=Sanjit K.|title=The Nonuniform Discrete Fourier Transform and Its Applications in Signal Processing|date=1999|publisher=Springer US|location=Boston, MA|isbn=978-1-4615-4925-3}} magnetic resonance imaging,{{cite journal|last1=Fessler|first1=J.A.|last2=Sutton|first2=B.P.|title=Nonuniform fast fourier transforms using min-max interpolation|journal=IEEE Transactions on Signal Processing|date=February 2003|volume=51|issue=2|pages=560–574|doi=10.1109/TSP.2002.807005|bibcode=2003ITSP...51..560F|hdl=2027.42/85840|hdl-access=free}} and the numerical solution of partial differential equations.{{cite journal|last1=Lee|first1=June-Yub|last2=Greengard|first2=Leslie|title=The type 3 nonuniform FFT and its applications|journal=Journal of Computational Physics|date=June 2005|volume=206|issue=1|pages=1–5|doi=10.1016/j.jcp.2004.12.004|bibcode=2005JCoPh.206....1L}}

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 complex numbers x_0, \ldots, x_{N-1} into another sequence of complex numbers X_0, \ldots, X_{N-1} defined by

{{NumBlk|:|X_k = \sum_{n=0}^{N-1} x_n e^{-2\pi i p_n f_k}, \quad 0 \leq k \leq N-1,|{{EquationRef|1}}}}

where p_0, \ldots, p_{N-1} \in [0,1] are sample points and f_0, \ldots, f_{N-1} \in [0,N] are frequencies. Note that if p_n = n/N and f_k = k, then equation ({{EquationNote|1}}) reduces to the discrete Fourier transform. There are three types of NUDFTs.{{cite journal|last1=Greengard|first1=Leslie|last2=Lee|first2=June-Yub|title=Accelerating the Nonuniform Fast Fourier Transform|journal=SIAM Review|date=January 2004|volume=46|issue=3|pages=443–454|doi=10.1137/S003614450343200X|bibcode=2004SIAMR..46..443G|citeseerx=10.1.1.227.3679}} 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 but nonuniform (i.e. non-integer) frequencies f_k. This corresponds to evaluating a generalized Fourier series at equispaced points. It is also known as NDFT{{cite book|last1=Plonka|first1=Gerlind |author1-link=Gerlind Plonka|last2=Potts|first2=Daniel |last3=Steidl|first3=Gabriele|author3-link=Gabriele Steidl |last4=Tasche|first4=Manfred |title=Numerical Fourier Analysis |publisher=Birkhäuser |date=2019 |isbn=978-3-030-04306-3 |doi=10.1007/978-3-030-04306-3}} or forward NDFT {{cite web |last1=PyNUFFT Services |title=Basic use of PyNUFFT — PyNUFFT 2023.2.2 documentation |url=https://pynufft.readthedocs.io/en/latest/tutor/basic_use.html |website=pynufft.readthedocs.io |access-date=27 February 2024}}{{cite web |last1=The Simons Foundation |title=Mathematical definitions of transforms — finufft 2.2.0 documentation |url=https://finufft.readthedocs.io/en/latest/math.html#math |website=finufft.readthedocs.io |access-date=27 February 2024}}
  • The nonuniform discrete Fourier transform of type II (NUDFT-II) uses uniform (i.e. integer) frequencies f_k = k but nonuniform sample points p_n. This corresponds to evaluating a Fourier series at nonequispaced points. It is also known as adjoint NDFT.
  • The nonuniform discrete Fourier transform of type III (NUDFT-III) uses both nonuniform sample points p_n and nonuniform frequencies 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 for +i in equation ({{EquationNote|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-dimensional array of complex numbers x_{\mathbf{n}} into another d-dimensional array of complex numbers X_{\mathbf{k}} defined by

: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 \mathbf{p}_{\mathbf{n}} \in [0,1]^d are sample points, \boldsymbol{f}_{\mathbf{k}} \in [0,N_1] \times [0,N_2] \times \cdots \times [0,N_d] are frequencies, and \mathbf{n} = (n_1,n_2,\ldots,n_d) and \mathbf{k} = (k_1,k_2,\ldots,k_d) are d-dimensional vectors of indices from 0 to \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.

Relationship to Z-transform

The NUDFT-I can be expressed as a Z-transform.{{cite book|last1=Marvasti|first1=Farokh|title=Nonuniform Sampling: Theory and Practice|date=2001|publisher=Springer|location=New York|isbn=978-1-4615-1229-5|pages=325–360}} The NUDFT-I of a sequence x[n] of length N is

: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) is the Z-transform of x[n], and \{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

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

where

:

\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 \mathbf{D} and hence the N {z_k} points. If we further factorize \det(\mathbf{D}), we can see that \mathbf{D} is nonsingular provided the N {z_k} points are distinct. If \mathbf{D} is nonsingular, we can get a unique inverse NUDFT-I as follows:

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

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

:\hat X [k]=X(z_k),\quad k=0, 1, ..., N-1.

Then x[n] are the coefficients of the above interpolating polynomial.

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

: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} are the fundamental polynomials:

:L_k(z)=\prod_{i\ne k}(1-z_iz^{-1}),\quad k=0, 1, ..., N-1.

Expressing X(z) by the Newton interpolation method, we get

:X(z)=c_0 + c_1(1-z_0z^{-1}) + c_2(1-z_0z^{-1})(1-z_1z^{-1}) + \cdots + c_{N-1}\prod_{k=0}^{N-2}(1-z_kz^{-1}),

where c_j is the divided difference of the jth order of \hat X [0], \hat X [1], ..., \hat X [j] with respect to z_0, z_1, ..., z_j:

:c_0 = \hat X [0],

:c_1 = \frac{\hat X [1]-c_0}{1-z_0z_1^{-1}},

:c_2 = \frac{\hat X [2]-c_0-c_1(1-z_0z^{-1})}{(1-z_0z_2^{-1})(1-z_1z_2^{-1})},

::\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\}:

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

where

:

\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 & \cdots & 0\\

1 & (1-z_0z_1^{-1}) & 0 & \cdots & 0\\

1 & (1-z_0z_2^{-1}) & (1-z_0z_2^{-1})(1-z_1z_2^{-1}) & \cdots & 0\\

\vdots & \vdots & \vdots & \ddots & \vdots\\

1 & (1-z_0z_{N-1}^{-1}) & (1-z_0z_{N-1}^{-1})(1-z_1z_{N-1}^{-1}) & \cdots & \prod_{k=0}^{N-2}(1-z_kz_{N-1}^{-1})

\end{bmatrix}.

By the above equation, \{c_j\} can be computed within 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) = \frac{(1-z_{k+1}z^{-1})}{(1-z_kz^{-1})}L_k(z),\quad k=0, 1, ..., N-1.

Nonuniform fast Fourier transform

While a naive application of equation ({{EquationNote|1}}) results in an O(N^2) algorithm for computing the NUDFT, 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,{{cite thesis|type=PhD|last=Dutt|first=Alok|title=Fast Fourier Transforms for Nonequispaced Data|date=May 1993|publisher=Yale University|url=https://cpsc.yale.edu/sites/default/files/files/tr981.pdf}}{{cite journal|last1=Dutt|first1=Alok|last2=Rokhlin|first2=Vladimir|title=Fast Fourier Transforms for Nonequispaced Data|journal=SIAM Journal on Scientific Computing|date=November 1993|volume=14|issue=6|pages=1368–1393|doi=10.1137/0914081|bibcode=1993SJSC...14.1368D }}{{cite journal|last1=Potts|first1=Daniel|last2=Steidl|first2=Gabriele|author2-link= Gabriele Steidl |title=Fast Summation at Nonequispaced Knots by NFFT|journal=SIAM Journal on Scientific Computing|date=January 2003|volume=24|issue=6|pages=2013–2037|doi=10.1137/S1064827502400984|bibcode=2003SJSC...24.2013P }}{{cite journal|last1=Boyd|first1=John P|title=A fast algorithm for Chebyshev, Fourier, and sinc interpolation onto an irregular grid|journal=Journal of Computational Physics|date=December 1992|volume=103|issue=2|pages=243–257|doi=10.1016/0021-9991(92)90399-J|bibcode=1992JCoPh.103..243B|url=https://deepblue.lib.umich.edu/bitstream/2027.42/29694/1/0000026.pdf|hdl=2027.42/29694|hdl-access=free}} min-max interpolation, and low-rank approximation.{{cite journal|last1=Ruiz-Antolín|first1=Diego|last2=Townsend|first2=Alex|title=A Nonuniform Fast Fourier Transform Based on Low Rank Approximation|journal=SIAM Journal on Scientific Computing|date=20 February 2018|volume=40|issue=1|pages=A529–A547|doi=10.1137/17M1134822|arxiv=1701.04492|bibcode=2018SJSC...40A.529R |url=https://repositorio.unican.es/xmlui/bitstream/handle/10902/13767/ANonuniform.pdf|hdl=10902/13767}} 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. Software libraries for performing NUFFTs are available in 1D, 2D, and 3D.{{cite web|title=NUFFT page|url=https://cims.nyu.edu/cmcl/nufft/nufft.html|website=cims.nyu.edu}}{{cite web|title=NFFT|url=http://www.nfft.org/|website=www.nfft.org|language=en}}{{cite web|title=MikaelSlevinsky/FastTransforms.jl|url=https://github.com/MikaelSlevinsky/FastTransforms.jl|website=GitHub|language=en|date=2019-02-13}}{{cite web|title=chebfun/chebfun|url=https://github.com/chebfun/chebfun|website=GitHub|language=en|date=2019-02-07}}

Applications

See also

References

{{Reflist}}