Beruflich Dokumente
Kultur Dokumente
TRANSFORM •
•
Any periodic waveform can be represented as a combination of simple
harmonics (sines and Cosies).
We can re-state the Fourier Series:
• Any periodic, complex wave can be visually represented, mathematically
expressed, or physically synthesized by adding the right combination of
pure sine or cosine waves together.
1
TRANS... WHAT
Representation of Signals
1 1
2 Hz
Magnitude
0 0
10 Hz
representation of that signal is obtained.
-0.5 -0.5
-1 -1
0 0.5
Time
1 0 0.5 1
• This tells us how much of each frequency exists in our signal.
Time
1 4
0.5 2 2 Hz +
20 Hz 10 Hz +
Magnitude
Magnitude
0 0
20Hz
-0.5 -2
-1 -4
0 0.5 1 0 0.5 1
Time Time
Why do we need the frequency information Why do we need the frequency information
• Often times, the information that cannot be readily seen in the time- • Cardiologists usually use the time-domain ECG signals which are
domain can be seen in the frequency domain. recorded on strip-charts to analyze ECG signals.
• Let's give an example from biological signals. • Recently, the new computerized ECG recorders/analyzers also
• Suppose we are looking at an ECG signal (Electro Cardio Graphy,). utilize the frequency information to decide whether a pathological
The typical shape of a healthy ECG signal is well known to condition exists.
cardiologists. • A pathological condition can sometimes be diagnosed more easily
• Any significant deviation from that shape is usually considered to be when the frequency content of the signal is analyzed
a symptom of a pathological condition. • This, of course, is only one simple example why frequency content
• This pathological condition, however, may not always be quite might be useful. Today Fourier transforms are used in many
obvious in the original time-domain signal. different areas including all branches of engineering.
2
Fourier Transform Stationarity of Signal
• FT decomposes a signal to complex exponential functions of different • Stationary Signal
frequencies. The way it does this, is defined by the following two equations:
• t - time, f - frequency, and x - signal at hand. X - signal in frequency
– Signals with frequency content unchanged in time
domain.. Equation (1) is called the Fourier transform of x(t), and equation
(2) is called the inverse Fourier transform of X(f), which is x(t).
– All frequency components exist at all times
• Non-stationary Signal
• Suppose we have two different signals. • The Fourier transform tells whether a certain frequency
• Also suppose that they both have the same spectral components, component exists or not. This information is independent of where
with one major difference. in time this component appears.
• Say one of the signals have four frequency components at all times,
• Therefore, FT is not a suitable tool for analyzing non-stationary
and the other have the same four frequency components at different
signals, i.e., signals with time varying spectra.
times.
• The FT of both of the signals would be the same. • Of course if you are not interested in at what times these
• Although the two signals are completely different, their (magnitude frequency components occur, but only interested in what
of) FT are the SAME !. frequency components exist, then FT can be a suitable tool to use.
• This, obviously tells us that we can not use the FT for non-
stationary signals.
0.8 0.8
• The Time and Frequency Information can not be Seen at the Same Time
0.6 0.6
• Time-frequency Representation of the Signal is Needed
0.4 0.4
Magnitude
Magnitude
100 100
Magnitude
Magnitude
0.2 0.2
0 0
-0.2 -0.2
50 50
-0.4 -0.4
-0.6 -0.6
-0.8
-1 0
-0.8
-1 0
Most of Transportation Signals are Non-stationary.
0 0.5 1 0 5 10 15 20 25 0 0.5 1 0 5 10 15 20 25
Time Frequency Time Frequency (We need to know whether and also when an incident was happened.)
(Hz) (Hz)
3
THE SHORT TERM FOURIER TRANSFORM
(STFT)
THE SHORT TERM FOURIER TRANSFORM
• There is only a minor difference between STFT and FT. • Now we have a true time-frequency representation of the signal. We
• In STFT, the signal is divided into small enough segments, where not only know what frequency components are present in the signal,
these segments (portions) of the signal can be assumed to be but we also know where they are located in time.
stationary.
• For this purpose, a window function "w" is chosen. • STFT gives the TFR of the signal.
• As you can see from the equation, the STFT of the signal is nothing
but the FT of the signal multiplied by a window function.
• why do we need the wavelet transform.
• The problem with STFT is the fact whose roots go back to what is
known as the Heisenberg Uncertainty Principle
• “It is impossible to know simultaneously the exact frequency and exact time of Via Narrow Window Via Wide Window
• What one can know are the time intervals in which certain band of frequencies
WAVELET TRANSFORMS
PRINCIPLES OF WAELET TRANSFORM
• Wavelet Transform
• Wavelet transform can give a good time-frequency
– An alternative approach to the short time Fourier representation of the non-stationary signal.
transform to overcome the resolution problem • Split Up the Signal into a Bunch of Signals
– Similar to STFT: signal is multiplied with a function
(it is the wavelet) • Representing the Same Signal, but all Corresponding to
4
DEFINITION OF CONTINUOUS WAVELET
TRANSFORM SCALE
1 ⎛ t − τ ⎞
CWT ψ
(τ , s ) = Ψ ψ
(τ , s ) = ∫ x (t ) • ψ *
⎜ ⎟ dt
⎝ ⎠
x x
s s
• Scale
Translation Scale
(The location of Mother Wavelet – S>1: dilate the signal
the window)
– S<1: compress the signal
Wavelet
• Low Frequency - High Scale - Non-detailed Global View of Signal - Span
Small wave
Mother Wavelet Entire Signal
A prototype for generating the other window functions • High Frequency - Low Scale - Detailed View Last in Short Time
All the used windows are its dilated or compressed and shifted • Only Limited Interval of Scales is Necessary
versions
Shifting (translation)
• Shifting a wavelet simply means delaying (or hastening) its onset.
Haar Wavelet
• hjk(t)=2j/2 h(2j t-k)
• j – scaling index :wavelet’s width
• k – location index: position of wavelet
• All basis elements are obtained by certain
translations and dilations of one element.
• This is the characteristic structure of wavelet basis
• h is called mother wavelet.
• Haar system is regarded as the simplest example of
wavelet basis
5
COMPUTATION OF CWT COMPUTATION OF CWT
S=5 S = 20
Better
frequency
resolution;
Poor time
resolution Time
From http://www.cerm.unifi.it/EUcourse2001/Gunther_lecturenotes.pdf, p.10
• Each box represents a equal portion
• Resolution in STFT is selected once for entire analysis