Regressive discrete Fourier series explained

In applied mathematics, the regressive discrete Fourier series (RDFS) is a generalization of the discrete Fourier transform where the Fourier series coefficients are computed in a least squares sense and the period is arbitrary, i.e., not necessarily equal to the length of the data. It was first proposed by Arruda (1992a, 1992b). It can be used to smooth data in one or more dimensions and to compute derivatives from the smoothed curve, surface, or hypersurface.

Technique

One-dimensional regressive discrete Fourier series

The one-dimensional RDFS proposed by Arruda (1992a) can be formulated in a very straightforward way. Given a sampled data vector (signal)

xn=x(tn)

, one can write the algebraic expression:

xn=\sum

q
k=-q

Xk

-i2\piktn
T
e

+\varepsilonn,tnarbitrary,n=1,...,N.

Typically

tn=n\Deltat

, but this is not necessary.

The above equation can be written in matrix form as

WX=x+\varepsilon.

The least squares solution of the above linear system of equations can be written as:

\hat{X}=(WHW)-1WHx

where

XH

is the conjugate transpose of

X

, and the smoothed signal is obtained from:

\hat{x}=W\hat{X}

The first derivative of the smoothed signal

\hat{x}

can be obtained from:
dx
dt

(tn)=\sum

q
k=-q
-i2\pik
T

Xk

-i2\piktn
T
e

,n=1,...,N.

Two-dimensional regressive discrete Fourier series (RDFS)

The two-dimensional, or bidimensional RDFS proposed by Arruda (1992b) can also be formulated in a straightforward way. Here the equally spaced data case will be treated for the sake of simplicity. The general non-equally-spaced and arbitrary grid cases are given in the reference (Arruda, 1992b). Given a sampled data matrix (bi dimensional signal)

xmn=x(\xim,\nun),m=1,...,M;n=1,...,N;

one can write the algebraic expression:

xmn

p
=\sum
k=-p
q
\sum
l=-q

Xkl

-i2\pik\xim
L\xi
e
-i2\pil\nun
L\nu
e

+\varepsilonmn,m=1,...,M;n=1,...,N.

The above equation can be written in matrix form for a rectangular grid. For the equally spaced sampling case :

\xim=m\Delta\xi,\nun=n\Delta\nu

we have:

xmn

p
=\sum
k=-p
q
\sum
l=-q

Xkl

-i2\pikm\Delta\xi
L\xi
e
-i2\piln\Delta\nu
L\nu
e

+\epsilonmn,m=1,...,M;n=1,...,N.

The least squares solution may be shown to be:

H
\hat{X}=(W
L\xi
W
L\xi

)-1

H
W
L\xi
*
xW
L\nu
(W
L\nu
H
W
L\nu

)-1

and the smoothed bidimensional surface is given by:

\hat{x}=W
L\xi
t
\hat{X}W
L\nu

where

XH

is the conjugate, and

Xt

is the transpose of

X

.

Differentiation with respect to

\xiand\nu

can be easily implemented analogously to the one-dimensional case (Arruda, 1992b).

Current applications

Software

Recently, a package that includes one and two-dimensional RDFS was developed in order to make easier its use in the free and open source software R:

See also

References