600 likes | 722 Views
Environmental Data Analysis with MatLab. Lecture 11: Lessons Learned from the Fourier Transform. SYLLABUS.
E N D
Environmental Data Analysis with MatLab Lecture 11: • Lessons Learned from the Fourier Transform
SYLLABUS Lecture 01 Using MatLabLecture 02 Looking At DataLecture 03Probability and Measurement ErrorLecture 04 Multivariate DistributionsLecture 05Linear ModelsLecture 06 The Principle of Least SquaresLecture 07 Prior InformationLecture 08 Solving Generalized Least Squares ProblemsLecture 09 Fourier SeriesLecture 10 Complex Fourier SeriesLecture 11 Lessons Learned from the Fourier Transform Lecture 12 Power SpectraLecture 13 Filter Theory Lecture 14 Applications of Filters Lecture 15 Factor Analysis Lecture 16 Orthogonal functions Lecture 17 Covariance and AutocorrelationLecture 18 Cross-correlationLecture 19 Smoothing, Correlation and SpectraLecture 20 Coherence; Tapering and Spectral Analysis Lecture 21 InterpolationLecture 22 Hypothesis testing Lecture 23 Hypothesis Testing continued; F-TestsLecture 24 Confidence Limits of Spectra, Bootstraps
purpose of the lecture understand some of the properties of the Discrete Fourier Transform
from last week … time series = sum of sines and cosines k remember • exp(iωt) = cos(ωt) + isin(ωt)
from last week … Discrete Fourier Transformof a time series time series coefficients 2 power spectral density =
time series di ti Δt
continuous function di ti Δt a time series is a discrete representation of a continuous function
continuous function d(t) t What happens when to the Discrete Fourier Transform when we switch from discrete to continuous?
Discrete Fourier Transform turns into Fourier Transform
Fourier Transform note the use of the tilde to distinguish a the Fourier Transform from the function itself. The two functions are different!
Fourier Transform function of frequency function of time 2 power spectral density =
the inverse of the Fourier Transform is function of frequency function of time
recall that an integral can be approximated by a summation f(t) f(ti) t Δt ti • integral = area under curve = • S area of rectangle = S width × height = Δt Sif(ti)
then if we use N rectangles each of width Δt and each of height d(tk) exp(-iωtk) then the Fourier Transform becomes provided that d(t) is “transient” zero outside of the interval (0,tmax)
so except for a scaling factor of Δt the Discrete Fourier Transform is the discrete version of the Fourier Transform of a transient function, d(t) scaling factor
similarlythe Fourier Series is an approximation of the Inverse Fourier Transform Inverse Fourier Transform Fourier Series (up to an overall scaling of Δω)
Fourier Transform in some ways integrals are easier to work with than summations
Property 1 the Fourier Transform of a Normal curve with variance σt2 • is a Normal curve with variance σω2 =σt-2
let a2=½σt-2 Normal curve with variance ½a-2 = σt2 • [cos(ωt ) + i sin(ωt )] dt • sin(ωt ) dt • cos(ωt ) dt + i symmetric about zero antisymmetric about zero so integral zero
look up in table of integrals Normal curve with variance 2a2 = σt-2
time series with broad features Fourier Transform with mostly low frequencies • power spectral density with mostly low frequencies • time series with narrow features Fourier Transform with both low and high frequencies • power spectral density with broad range of frequencies
A) B) 0 0 time, t frequency, f fmax tmax increasing variance increasing variance
Property 2 the Fourier Transform of a spike • is constant
spike “Dirac Delta Function” Normal curve with infinitesimal variance infinitely high but always has unit area
depiction of spike δ(t-t0) t t0
since the spike is zero everywhere except t0 • this product … f(t0) t t0 • … is equivalent to this one f(t0) t t0
use the previous result when computing the Fourier Transform of a spike
A spiky time serieshas a “flat” Fourier Transformand a “flat” power spectral density
A) spike function d(t) time, t B) its transform ^ d(f) frequency, f
Property 3 the Fourier Transform of cos(ω0t ) • is a pair of spikes at frequencies ±ω0
An oscillatory time serieshas spiky Fourier Transformand a power spectral density with spectral peaks
Property 4 the area under a time series • is the zero-frequency value of the Fourier Transform
A time series with zero meanhas a Fourier Transformthat is zero at zero frequency
MatLab dt=fft(d); area = real(dt(1));
Property 5 multiplying the Fourier Transform by exp( -iω t0) • delays the time series by t0
use transformation of variables t’ = t - t0 • and note • dt’ = dt • and • t±∞ corresponds to t’±∞
d(t) time, t d(t) dshifted(t) time, t
MatLab t0 = t(16); ds=ifft(exp(-i*w*t0).*fft(d));
Property 6 multiplying the Fourier Transform by iω • differentiates the time series
use integration by parts • and assume that the times series is zero • ast±∞ u dv v u v du
A) d(t) B) dd/dt C) dd/dt time, t
MatLab dddt=ifft(i*w.*fft(d));
Property 7 dividing the Fourier Transform by iω • integrates the time series
this is another derivation by integration by parts but we’re skipping it here