Beruflich Dokumente
Kultur Dokumente
1
Midterm details, etc.
Materials allowed: Official course notes, handwritten notes, assignments,
non-programmable calculators.
Data/Time: Tues, Feb 28, 7-9pm.
Location: To be announced. (Youll be divided among 3 rooms.)
Covers: Floating point, interpolation and splines, ordinary differential
equations. (No Fourier transforms.)
2
Recall: Discrete Fourier Transform
Last time, we developed the Discrete Fourier Transform pair:
1 1
= 1
=0 and = =0
2
where = , recalling Eulers formula = cos + sin.
1
Note the different placement of the scaling by .
So be careful (a) when coding in Matlab, and (b) reading other sources!
4
2
Example 5.1: fn = cos
2
Consider a set of N data points such that fn = cos .
1
Show that 1 = 1 = , and for all other coefficients, = 0.
2
5
2
Example 5.1: DFT of N=12 points for cos
7
Two Properties of the DFT
As consequences of the properties of Nth roots of unity
8
Yet to come in Fourier Transforms
Well try to develop more intuition for what the DFT means.
Well look at how to do the DFT quickly (Fast Fourier Transform, FFT).
Well discuss some applications.
9
10
Discrete Fourier Transform
Typically, we want to learn/achieve something by processing the data.
(Image data, audio samples, prices, intensities, etc.)
11
Power/Fourier Spectrum
The power spectrum visualizes the Fourier coefficients by plotting their
moduli/magnitudes | |, e.g., using Matlab.
stem(abs(F)) bar(abs(F))
This expresses the magnitude of the frequencies, but ignores phase.
2
(Note: other sources use as power spectrum.)
12
Example Cosine (Notes, Example 5.1)
2
Last time, we saw a (rather artificial) example, cos .
13
Discrete Data Examples
What if our data is less artificial and more irregular? (N=9 here.)
or
15
Discrete Data A Rough Hump
16
Discrete Data - Observations
1
Coefficient 0 is always the average of data values, 0 = 1
=0 .
(Sometimes called the direct current or DC.)
The rough hump had more irregularity, so more active (higher) frequencies.
Main hump still dominates, so low freqs 1 and 8 remain largest.
The power spectra ( plots) are symmetric, since the data was real.
17
A Matrix View of DFT
1 1
Our usual DFT is = =0 .
1 1 1 1 0 0
1 0 1 2 3 1 1
=
4 0 2 4 6 2 2
0 3 6 9 3 3
=
19
A Matrix View of IDFT
1
Our orthogonality identity leads to
= where is the identity
,
matrix. For = 4:
1 0 0 0 1 1 1 1 1 0 0 0
1 1 1 2 3 1 0 1 2 3 1 0 1 0 0
2 4 6 0 2 4 6 =
4 1 4 4 0 0 1 0
1 3 6 9 0 3 6 9 0 0 0 1
1
Therefore 1 = .
The IDFT becomes = 1 = .
20
A Matrix View of IDFT
e.g., For = 4, we have IDFT = 3=0 in matrix form:
1 0 0 0 0 0
1 1 2 3 1 1
=
1 2 4 6 2 2
1 3 6 9 3 3
=
21
Summary: Matrix Form of DFT pair
DFT: =
1
Inverse DFT: = =
22
DFT So Far
We derived the Discrete Fourier Transform (DFT) and its inverse, IDFT.
Well next look at DFTs computational cost, and how to accelerate it!
23