SlideShare une entreprise Scribd logo
1  sur  8
Télécharger pour lire hors ligne
Introduction to Signal Processing




1     Introduction
In this article, we discuss about signals, systems and transforms. Signals can
be considered as functions. Audio signal is a one dimensional function of time
whereas an image is a two dimensional function that varies in space. Systems
manipulate signals, i.e they can be considered as a map from functions to func-
tions. Transforms make signal processing easier by changing the domain in
which the underlying signal is represented.


2     Signals
Signals can be functions of time or space. For processing signals it is advanta-
geous to represent them in in frequency domain. Several operations such as fil-
tering out unnecessary frequencies can be performed efficiently in the frequency
domain. Generally low frequency components represents the overall shape of
the signal and high frequency components are caused due to noise or presence
of edges in an image. To remove noise, high frequency components are reduced.
To sharpen an image, high frequency components are emphasized. Thus it is
easier to carry many operations in the frequency domain.


2.1    From time domain to frequency domain
Fourier discovered that any periodic signal can be represented as combination
of sinusoids of different amplitudes, frequencies and phases. Any periodic sig-
                                                                    1
nal s(t) with period T0 (thus having fundamental frequency f0 = T0 can be
represented as follows
                                  ∞
                         s(t) =         an sin(2πnf0 t + φ)                  (1)
                                  n=0




                                           1
A phase shifted sine wave can be expressed in terms of sine and cosine
functions due to the following identity.

                   sin(A + φ) = sin(A)cos(φ) + sin(φ)cos(A)

   Thus we can express s(t) as sum of sines and cosines of different amplitudes
and frequencies. Equation 1 becomes
                            ∞
                   s(t) =         an cos(2πnf0 t) + bn sin(2πnf0 t)             (2)
                            n=0

   which is also written as
                                  ∞
                 s(t) = a0 +            an cos(2πnf t) + bn sin(2πnf t)
                                n=1

   If the function has non zero value for f (0), it indicates the presence of cosine
components. a0 represents the average value of the function over a time period.
This is because the average value of sines and cosines over a time period is zero.

                                         it   −it                    it   −it
    Using the identities cos(t) = e +e  2   and sin(t) = e −e2i    and letting An
        an −ibn       ∗         an +ibn
denote     2    and An denote      2    , Equation 2 can be represented by means
of a single complex exponential.
                                  ∞
                       s(t) =           An ej2πnf0 t + A∗ ej2πnf0 t
                                                        n
                                  n=0

   which can be written as
                                              ∞
                              s(t) =                  An ej2πnf0 t
                                          n=−∞

   The above formula is known as fourier decomposition of s(t) into complex
exponentials. This decomposition is a way of transforming the signal from the
time domain to frequency domain. In the next section we will see how a signal
and its decomposition into fourier series can be viewed in the vector space model.


2.2    Vector Space Model
The set of signals forms a vector space. A vector space is a collection of vectors
that is closed under linear combination, i.e. if two vectors v, w are in the space,
then the vector av + bw is also in the space for scalars a and b(The condition
says the space is closed under vector addition and scalar multiplication). A


                                                  2
familiar example of vector space is the Euclidean space R3 . Any set of objects
with operations addition and multiplication which are closed under linear com-
bination forms a vector space. Under this definition polynomials, matrices and
functions also form vector space.

   We can generalize familiar concepts in the Euclidean space to the more
general vector space. The length or norm of vector v is given by

                                                n
                                   v =                2
                                                     vi
                                               i=0


   The distance between two vectors v1 and v2 is the norm of the difference
vector v1 − v2 . The angle between two vectors is closely related to the inner
product < v1, v2 > due to the following relation.

                                        < v1, v2 >
                               cosθ =
                                        v1 ∗ v2
   Two vectors are said to be orthogonal if their inner product is zero.

    The concepts of length, distance and angle can be defined on any vector
space. For instance, in the space of functions, the integral f (x).g(x) gen-
eralizes the dot product in which summation is replaced by integration. The
                                                                 b
functions f (x) and g(x) are said to be orthogonal on [a, b] if a f (x).g(x) = 0.
For example the set of functions { ejn2πf t } n=0,1,2... are orthogonal.

    A basis is a minimal set of vectors that spans the entire space. If the elements
in basis are orthogonal and have unit length , then they form orthonormal basis
as formed by (i, j, k) in the euclidean space. A point in the euclidean space given
by u = xi + yj + zk. The values x,y and z gives the magnitude of projection on
these basis. To compute the magnitude of projection along i, we compute the
inner product of u and i, thus x = u.i.

   A function s(t) can be viewed as a point in the space of functions. The
fourier decomposition of the function given by
                                       ∞
                             s(t) =            An ejn2πf0 t
                                      n=−∞

can be viewed as projection of the function onto orthonormal basis given by the
complex exponential functions ejn2πf0 t . Finding the magnitude of projection is

                                           3
equivalent to finding the fourier coefficients. To compute the the magnitude of
projection along ejn2πf0 t ,we compute the inner product of s(t) and ejn2πf0 t .
Using the definition of inner product for functions, we get the fourier coefficients
as

                                      T0 /2
                                1
                         An =                 s(t)e−jn2πf0 t dt
                                T0   −T0 /2


3     Systems
Systems maps signals to signals. To characterize a system we need to find its
response for each and every input function, which is infeasible. Fortunately sys-
tems that are linear and time invariant (LTI) can be characterized if its response
for a small set of inputs is known. In a linear system, the principle of superpo-
sition holds - if x1 and x2 produces responses y1 and y2 respectively, then input
ax1 + bx2 produces the response ay1 + by2 . A system is said to be time invari-
ant if a delay in input by t seconds causes the output to be delayed by t seconds.

    In the following sections, we will see that to characterize an LTI system it is
sufficient if we know its response for the impulse function and that the output
of an LTI system is just the convolution of the input with the impulse response.


3.1    Impulse Response
Consider a signal that lasts for w seconds and has amplitude 1/w. In the limit-
ing case as w → 0, the signal is called impulse. LTI systems have a remarkable
property that they can be completely characterized by its response to the im-
pulse function.
    @figure
    The input signal is divided into smaller ones, each short enough to act as an
impulse to the system. In other words, the input signal is decomposed into an
infinite number of scaled and shifted impulse functions. Each of these impulses
produces a scaled and shifted version of the impulse response in the output
signal. The final output signal is then equal to the combined effect, i.e., the
sum of all of the individual responses. Thus if the response to the impulse
function is known, the response of the input signal can be calculated. We show
that the output is the convolution of the input with the impulse response of the
system.




                                          4
3.2    Convolution
Convolution is a mechanism by which an input signal is shaped by another sig-
nal to produce an output signal. We introduce convolution by considering the
problem of smoothing a signal. Later we show that the output of a system is
the convolution of the input with the impulse response.

    Consider a transformation that smoothes the signal by averaging adjacent
signals - bn = (an + an−1 )/2. These kinds of transformations are used for re-
ducing effects of noise. The transformation can also be described in terms of
polynomial multiplication. If we represent the input sequence a0 , a1 , a2 .... by
the polynomial A(x) = a0 + a1 x + a2 x2 + a3 x3 .... , the coefficient of bn in the
                        1
product B(x) = A(x) 2 (1 + x) is given by bn = (an + an−1 )/2 which is the
                                         1
output sequence. The polynomial P (x) = 2 (1 + x) defines how the input signal
is manipulated(convolved) to produce the output. Convolution and polynomial
multiplication are closely related.

    For the product B(x) = A(x) ∗ P (x), the coefficient of the convolved sig-
                      n
nal bn is given by i=0 ai ∗ pn−i . In the continuous domain the summation
is replaced by integration and the convolution of two function f (x) and g(x)
                   u
becomes C(u) = 0 f (x) ∗ g(u − x)

    We now show that the output of a system can be viewed as a convolution
of the input signal with the impulse response of the system. Consider a system
whose output is h(t) when given the input δ(t). Any input signal can be consid-
ered as summation of scaled and shifted impulse functions i.e. For a continuous
                               ∞
signal, s(t) can be viewed as −∞ f (τ )δ(t − τ )dτ . Since the response of δ(t) is
                               ∞
h(t), the response for s(t) is −∞ f (τ )h(t − τ )dτ . Thus the convolution of the
input signal with the impulse response gives the output signal.




4     Transforms and their applications
Transforms make it easier for systems to manipulate signals. Any linear trans-
formation can be described as a projection onto a new set of basis functions.

    Fourier Transform




                                        5
We have seen the fourier series for a periodic signal having frequency f0 is
                ∞
given by s(t) = n=−∞ An ejn2πf0 t and that An is given by
                                        T0
                               1         2
                          An =               s(t)e−jn2πf0 t dt
                               T0      −T0
                                        2

    The following figure plots the frequency components and the magnitude of
An . Note that here the amplitudes are function of frequencies defined at discrete
points.
    @figure
    As the frequency f0 decreases, these amplitudes become more closely spaced.
For a non periodic signal , the time period T0 → ∞ and thus f0 → 0. The sepa-
ration between successive harmonics becomes small and the amplitudes become
a continuous function of frequency. Thus nf0 becomes the continuous variable
f and the above formula for An becomes
                                        ∞
                                  1
                           Af =                  s(t)e−j2πf t dt                (3)
                                  T0   −∞

     The above transformation takes a function of time as input and produces
a function of frequency i.e. s(t) → Af . This is called the Fourier Transform.
The transform makes it easier to perform many operations that are difficult in
the time domain. The fourier transform of the convolution of two functions
s1 (t) and s2 (t) is equal to product of their fourier transforms. Intuitively, mul-
tiplication emphasizes those frequencies that are present in both the signals.
Thus for producing the convolution of two functions, it is easier to transform
them into frequency domain, multiply them and transform back to time domain.

   Discrete Fourier Transform

    While processing signals on a computer, variables are discrete and the con-
tinuous fourier transform is approximated by Discrete Fourier Transform. We
sample a continuous function s(t) at intervals of ∆, generating a sequence of
sampled values sk = s(k∆) collecting a total of N samples (1/∆ is the sampling
frequency, which according to Nyquist theorem must be at least twice the fre-
quency of the highest component present in the wave).

    In the continuous fourier transform, we have the values of the signal defined
at each point of time and generate a function of frequency that is defined for
all values. In DFT, we have the values of the signal at discrete points tk = k∆



                                             6
represented as s(k) and generate a function of frequency that are valid at discrete
frequencies An . In the discrete case Equation 3 becomes

                                      N −1
                               An =          s(k)e−2πikn/N                     (4)
                                      k=0
   The equation xN = 1 is of degree N and thus has N roots given by ωN ,
                                                                     n
                     2πi
(n=0,1... N and ω = e N . Thus Equation 4 can also be written as

                                         N −1
                                                       kn
                                  An =            s(k)ωN                       (5)
                                         k=0
   The DFT can be viewed as a transformation of N point signal into N fourier
coefficients or as a matrix that maps an N-dimensional vector to N-dimensional
vector.

    DFT can be used to speed up polynomial multiplication. We have already
seen that polynomial multiplication is related to convolution and it is easy to
convolve signals in frequency domain. We use these facts to speedup multipli-
cation.
    Considering the coefficients of a polynomial (of degree N) as our signal, we
get N fourier coefficients. (According to Equation 5, these correspond to the
values of the polynomial evaluated at the complex roots of unity). These values
give the point-value representation of the polynomial. To multiply two polyno-
mials f (x) and g(x), we evaluate the polynomials at roots of unity, multiply the
corresponding values to get the point-value representation of f (x) ∗ g(x) from
which we can construct the polynomial f (x) ∗ g(x).

    Fast Fourier Transform The fast fourier transform is a computationally
fast method to compute the DFT. Computing DFT directly for N points requires
O(N 2 ) complex multiplication. FFT exploits the structure of DFT to reduce
the complexity. Rewriting Equation 5 we get

                      N −1
                                  kn
             An   =          s(k)ωN
                       k=0
                                       kn                      kn
             An   =               s(k)ωN +                s(k)ωN
                      k is even                k is odd
                      (N/2)−1                     (N/2)−1
                                        2jn                          (2j+1)n
             An   =               s(2j)ωN +                 s(2j + 1)ωN
                         j=0                        j=0




                                              7
2
    Using the relation ωN = ωN/2 , we get

                     (N/2)−1                    (N/2)−1
                                     jn     n                       jn
              An =             s(2j)ωN/2 + ωN             s(2j + 1)ωN/2
                      j=0                        j=0

    Thus we have reduced the problem of computing N point DFT for s(k) to
finding two N/2 point DFTs for s(j) and s(2j + 1). This is a divide and conquer
approach where we have reduced the problem of size N to two subproblems of
size N/2. It has complexity O(N logN )

   Discrete Cosine Transform If the function is an even function, then the
fourier transform consists of only cosine components and the transform becomes
Discrete Cosine Transform. Thus DCT can be defined in terms of DFT by im-
posing symmetry. DCT is used for compression in JPEG images. JPEG com-
pression takes into account that the human eye, cannot detect high frequency
components. Using a process of quantization, we retain all low frequency com-
ponents. (The high frequency components are retained only if they have large
coefficients). On the resulting coefficients run length encoding and huffman
compression is applied


5     Conclusion
We have seen how a signal can be viewed as a function in the vector space
model of functions. Systems are used to manipulate signals and a special class
of systems called LTI systems can be easily characterized by its impulse function.
Transforms make it easier to manipulate signals. Transforms can be viewed as
change of basis in the vector space model. Transformations have a number of
applications including filtering, convolution, pattern recognition, solving partial
differential equations, multiplication of polynomials and large numbers, analysis
of time series, solving system of linear equations




                                         8

Contenu connexe

Tendances

Antennas slideshare part 2
Antennas slideshare part 2Antennas slideshare part 2
Antennas slideshare part 2Muthumanickam
 
Presentation on fourier transformation
Presentation on fourier transformationPresentation on fourier transformation
Presentation on fourier transformationWasim Shah
 
Comparsion of M-Ary psk,fsk,qapsk.pptx
Comparsion of M-Ary psk,fsk,qapsk.pptxComparsion of M-Ary psk,fsk,qapsk.pptx
Comparsion of M-Ary psk,fsk,qapsk.pptxkeshav11845
 
Dsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processingDsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processingAmr E. Mohamed
 
Discrete Time Fourier Transform
Discrete Time Fourier TransformDiscrete Time Fourier Transform
Discrete Time Fourier TransformWaqas Afzal
 
Z transform
Z transformZ transform
Z transformnirav34
 
L 1 5 sampling quantizing encoding pcm
L 1 5 sampling quantizing encoding pcmL 1 5 sampling quantizing encoding pcm
L 1 5 sampling quantizing encoding pcmDEEPIKA KAMBOJ
 
Fourier transform (cell phones)
Fourier transform (cell phones)Fourier transform (cell phones)
Fourier transform (cell phones)SaadSaif6
 
Fourier analysis of signals and systems
Fourier analysis of signals and systemsFourier analysis of signals and systems
Fourier analysis of signals and systemsBabul Islam
 
Overview of sampling
Overview of samplingOverview of sampling
Overview of samplingSagar Kumar
 
Chapter4 - The Continuous-Time Fourier Transform
Chapter4 - The Continuous-Time Fourier TransformChapter4 - The Continuous-Time Fourier Transform
Chapter4 - The Continuous-Time Fourier TransformAttaporn Ninsuwan
 
Fourier transforms
Fourier transformsFourier transforms
Fourier transformsIffat Anjum
 

Tendances (20)

OFDM_Behind 4G technology
 OFDM_Behind 4G technology OFDM_Behind 4G technology
OFDM_Behind 4G technology
 
Antennas slideshare part 2
Antennas slideshare part 2Antennas slideshare part 2
Antennas slideshare part 2
 
z transforms
z transformsz transforms
z transforms
 
Presentation on fourier transformation
Presentation on fourier transformationPresentation on fourier transformation
Presentation on fourier transformation
 
Matched filter
Matched filterMatched filter
Matched filter
 
Chapter 03 cyclic codes
Chapter 03   cyclic codesChapter 03   cyclic codes
Chapter 03 cyclic codes
 
Comparsion of M-Ary psk,fsk,qapsk.pptx
Comparsion of M-Ary psk,fsk,qapsk.pptxComparsion of M-Ary psk,fsk,qapsk.pptx
Comparsion of M-Ary psk,fsk,qapsk.pptx
 
Fourier transform
Fourier transformFourier transform
Fourier transform
 
Dsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processingDsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processing
 
Fourier Transform
Fourier TransformFourier Transform
Fourier Transform
 
Discrete Time Fourier Transform
Discrete Time Fourier TransformDiscrete Time Fourier Transform
Discrete Time Fourier Transform
 
Stable & Unstable Systems |Solved problems|
Stable & Unstable Systems |Solved problems|Stable & Unstable Systems |Solved problems|
Stable & Unstable Systems |Solved problems|
 
Z transform
Z transformZ transform
Z transform
 
Properties of Fourier transform
Properties of Fourier transformProperties of Fourier transform
Properties of Fourier transform
 
L 1 5 sampling quantizing encoding pcm
L 1 5 sampling quantizing encoding pcmL 1 5 sampling quantizing encoding pcm
L 1 5 sampling quantizing encoding pcm
 
Fourier transform (cell phones)
Fourier transform (cell phones)Fourier transform (cell phones)
Fourier transform (cell phones)
 
Fourier analysis of signals and systems
Fourier analysis of signals and systemsFourier analysis of signals and systems
Fourier analysis of signals and systems
 
Overview of sampling
Overview of samplingOverview of sampling
Overview of sampling
 
Chapter4 - The Continuous-Time Fourier Transform
Chapter4 - The Continuous-Time Fourier TransformChapter4 - The Continuous-Time Fourier Transform
Chapter4 - The Continuous-Time Fourier Transform
 
Fourier transforms
Fourier transformsFourier transforms
Fourier transforms
 

En vedette

Dft and its applications
Dft and its applicationsDft and its applications
Dft and its applicationsAgam Goel
 
Discrete Fourier Transform
Discrete Fourier TransformDiscrete Fourier Transform
Discrete Fourier TransformAbhishek Choksi
 
fourier transforms
fourier transformsfourier transforms
fourier transformsUmang Gupta
 
Fast Fourier Transform
Fast Fourier TransformFast Fourier Transform
Fast Fourier Transformop205
 
Signal Processing Course : Fourier
Signal Processing Course : FourierSignal Processing Course : Fourier
Signal Processing Course : FourierGabriel Peyré
 
Static Analysis of Computer programs
Static Analysis of Computer programs Static Analysis of Computer programs
Static Analysis of Computer programs Arvind Devaraj
 
The discrete fourier transform (dsp) 4
The discrete fourier transform  (dsp) 4The discrete fourier transform  (dsp) 4
The discrete fourier transform (dsp) 4HIMANSHU DIWAKAR
 
Maxus Dijital Dünyaya Bakış Ağustos 2013
Maxus Dijital Dünyaya Bakış Ağustos 2013Maxus Dijital Dünyaya Bakış Ağustos 2013
Maxus Dijital Dünyaya Bakış Ağustos 2013Maxus Turkey
 
Scratchpads Intro: Swiss Orchid Foundation
Scratchpads Intro: Swiss Orchid FoundationScratchpads Intro: Swiss Orchid Foundation
Scratchpads Intro: Swiss Orchid FoundationEdward Baker
 
Ríos África
Ríos ÁfricaRíos África
Ríos Áfricaiesasorey
 
123RF Stock Photos Plugin for Joomla Manual Documentation
123RF Stock Photos Plugin for Joomla  Manual Documentation123RF Stock Photos Plugin for Joomla  Manual Documentation
123RF Stock Photos Plugin for Joomla Manual DocumentationInmagine Group
 
HEC MBA High Tech Careers by Andre Dan
HEC MBA High Tech Careers   by Andre DanHEC MBA High Tech Careers   by Andre Dan
HEC MBA High Tech Careers by Andre DanAndré Dan
 
Eurosport mediakit english
Eurosport mediakit englishEurosport mediakit english
Eurosport mediakit englishAC&M Group
 
Asesorias legales prepagadas
Asesorias legales prepagadasAsesorias legales prepagadas
Asesorias legales prepagadasAlier Ramirez
 

En vedette (20)

Dft and its applications
Dft and its applicationsDft and its applications
Dft and its applications
 
Discrete Fourier Transform
Discrete Fourier TransformDiscrete Fourier Transform
Discrete Fourier Transform
 
Fft ppt
Fft pptFft ppt
Fft ppt
 
fourier transforms
fourier transformsfourier transforms
fourier transforms
 
Fourier transform
Fourier transformFourier transform
Fourier transform
 
Fast Fourier Transform
Fast Fourier TransformFast Fourier Transform
Fast Fourier Transform
 
Signal Processing Course : Fourier
Signal Processing Course : FourierSignal Processing Course : Fourier
Signal Processing Course : Fourier
 
Static Analysis of Computer programs
Static Analysis of Computer programs Static Analysis of Computer programs
Static Analysis of Computer programs
 
The discrete fourier transform (dsp) 4
The discrete fourier transform  (dsp) 4The discrete fourier transform  (dsp) 4
The discrete fourier transform (dsp) 4
 
Maxus Dijital Dünyaya Bakış Ağustos 2013
Maxus Dijital Dünyaya Bakış Ağustos 2013Maxus Dijital Dünyaya Bakış Ağustos 2013
Maxus Dijital Dünyaya Bakış Ağustos 2013
 
Scratchpads Intro: Swiss Orchid Foundation
Scratchpads Intro: Swiss Orchid FoundationScratchpads Intro: Swiss Orchid Foundation
Scratchpads Intro: Swiss Orchid Foundation
 
Ríos África
Ríos ÁfricaRíos África
Ríos África
 
123RF Stock Photos Plugin for Joomla Manual Documentation
123RF Stock Photos Plugin for Joomla  Manual Documentation123RF Stock Photos Plugin for Joomla  Manual Documentation
123RF Stock Photos Plugin for Joomla Manual Documentation
 
HEC MBA High Tech Careers by Andre Dan
HEC MBA High Tech Careers   by Andre DanHEC MBA High Tech Careers   by Andre Dan
HEC MBA High Tech Careers by Andre Dan
 
IA Robotica
IA RoboticaIA Robotica
IA Robotica
 
Eurosport mediakit english
Eurosport mediakit englishEurosport mediakit english
Eurosport mediakit english
 
McClymond - CV - 010117
McClymond - CV - 010117McClymond - CV - 010117
McClymond - CV - 010117
 
E29
E29E29
E29
 
Asesorias legales prepagadas
Asesorias legales prepagadasAsesorias legales prepagadas
Asesorias legales prepagadas
 
Complain less
Complain lessComplain less
Complain less
 

Similaire à Signal Processing Introduction using Fourier Transforms

Ch1 representation of signal pg 130
Ch1 representation of signal pg 130Ch1 representation of signal pg 130
Ch1 representation of signal pg 130Prateek Omer
 
Fourier Specturm via MATLAB
Fourier Specturm via MATLABFourier Specturm via MATLAB
Fourier Specturm via MATLABZunAib Ali
 
Fourier series 1
Fourier series 1Fourier series 1
Fourier series 1Faiza Saher
 
signal space analysis.ppt
signal space analysis.pptsignal space analysis.ppt
signal space analysis.pptPatrickMumba7
 
Find the compact trigonometric Fourier series for the periodic signal.pdf
Find the compact trigonometric Fourier series for the periodic signal.pdfFind the compact trigonometric Fourier series for the periodic signal.pdf
Find the compact trigonometric Fourier series for the periodic signal.pdfarihantelectronics
 
Ss important questions
Ss important questionsSs important questions
Ss important questionsSowji Laddu
 
WaveletTutorial.pdf
WaveletTutorial.pdfWaveletTutorial.pdf
WaveletTutorial.pdfshreyassr9
 
Dynamical systems solved ex
Dynamical systems solved exDynamical systems solved ex
Dynamical systems solved exMaths Tutoring
 
Time Series Analysis
Time Series AnalysisTime Series Analysis
Time Series AnalysisAmit Ghosh
 
Communication system 1 chapter 2-part-1
Communication system 1 chapter  2-part-1Communication system 1 chapter  2-part-1
Communication system 1 chapter 2-part-1BetelihemMesfin1
 
TPDE_UNIT II-FOURIER SERIES_PPT.pptx
TPDE_UNIT II-FOURIER SERIES_PPT.pptxTPDE_UNIT II-FOURIER SERIES_PPT.pptx
TPDE_UNIT II-FOURIER SERIES_PPT.pptxragavvelmurugan
 
Solution set 3
Solution set 3Solution set 3
Solution set 3慧环 赵
 

Similaire à Signal Processing Introduction using Fourier Transforms (20)

Ch1 representation of signal pg 130
Ch1 representation of signal pg 130Ch1 representation of signal pg 130
Ch1 representation of signal pg 130
 
Fourier Specturm via MATLAB
Fourier Specturm via MATLABFourier Specturm via MATLAB
Fourier Specturm via MATLAB
 
Fourier Analysis
Fourier AnalysisFourier Analysis
Fourier Analysis
 
Fourier Analysis
Fourier AnalysisFourier Analysis
Fourier Analysis
 
Fourier series 1
Fourier series 1Fourier series 1
Fourier series 1
 
signal space analysis.ppt
signal space analysis.pptsignal space analysis.ppt
signal space analysis.ppt
 
Find the compact trigonometric Fourier series for the periodic signal.pdf
Find the compact trigonometric Fourier series for the periodic signal.pdfFind the compact trigonometric Fourier series for the periodic signal.pdf
Find the compact trigonometric Fourier series for the periodic signal.pdf
 
Fourier series
Fourier seriesFourier series
Fourier series
 
Ss important questions
Ss important questionsSs important questions
Ss important questions
 
Nt lecture skm-iiit-bh
Nt lecture skm-iiit-bhNt lecture skm-iiit-bh
Nt lecture skm-iiit-bh
 
WaveletTutorial.pdf
WaveletTutorial.pdfWaveletTutorial.pdf
WaveletTutorial.pdf
 
unit 4,5 (1).docx
unit 4,5 (1).docxunit 4,5 (1).docx
unit 4,5 (1).docx
 
Fourier series
Fourier seriesFourier series
Fourier series
 
Dynamical systems solved ex
Dynamical systems solved exDynamical systems solved ex
Dynamical systems solved ex
 
Time Series Analysis
Time Series AnalysisTime Series Analysis
Time Series Analysis
 
Communication system 1 chapter 2-part-1
Communication system 1 chapter  2-part-1Communication system 1 chapter  2-part-1
Communication system 1 chapter 2-part-1
 
TPDE_UNIT II-FOURIER SERIES_PPT.pptx
TPDE_UNIT II-FOURIER SERIES_PPT.pptxTPDE_UNIT II-FOURIER SERIES_PPT.pptx
TPDE_UNIT II-FOURIER SERIES_PPT.pptx
 
math camp
math campmath camp
math camp
 
Solution set 3
Solution set 3Solution set 3
Solution set 3
 
senior seminar
senior seminarsenior seminar
senior seminar
 

Plus de Arvind Devaraj

Deep learning for NLP and Transformer
 Deep learning for NLP  and Transformer Deep learning for NLP  and Transformer
Deep learning for NLP and TransformerArvind Devaraj
 
NLP using transformers
NLP using transformers NLP using transformers
NLP using transformers Arvind Devaraj
 
Career options for CS and IT students
Career options for CS and IT studentsCareer options for CS and IT students
Career options for CS and IT studentsArvind Devaraj
 
Yourstory Android Workshop
Yourstory Android WorkshopYourstory Android Workshop
Yourstory Android WorkshopArvind Devaraj
 
Android High performance in GPU using opengles and renderscript
Android High performance in GPU using opengles and renderscriptAndroid High performance in GPU using opengles and renderscript
Android High performance in GPU using opengles and renderscriptArvind Devaraj
 
OpenGLES Android Graphics
OpenGLES Android GraphicsOpenGLES Android Graphics
OpenGLES Android GraphicsArvind Devaraj
 
AIDL - Android Interface Definition Language
AIDL  - Android Interface Definition LanguageAIDL  - Android Interface Definition Language
AIDL - Android Interface Definition LanguageArvind Devaraj
 
NDK Programming in Android
NDK Programming in AndroidNDK Programming in Android
NDK Programming in AndroidArvind Devaraj
 
Google Cloud Messaging
Google Cloud MessagingGoogle Cloud Messaging
Google Cloud MessagingArvind Devaraj
 
OpenGLES - Graphics Programming in Android
OpenGLES - Graphics Programming in Android OpenGLES - Graphics Programming in Android
OpenGLES - Graphics Programming in Android Arvind Devaraj
 
Sorting (introduction)
 Sorting (introduction) Sorting (introduction)
Sorting (introduction)Arvind Devaraj
 
Data structures (introduction)
 Data structures (introduction) Data structures (introduction)
Data structures (introduction)Arvind Devaraj
 
Graphics programming in open gl
Graphics programming in open glGraphics programming in open gl
Graphics programming in open glArvind Devaraj
 
Thesis: Slicing of Java Programs using the Soot Framework (2006)
Thesis:  Slicing of Java Programs using the Soot Framework (2006) Thesis:  Slicing of Java Programs using the Soot Framework (2006)
Thesis: Slicing of Java Programs using the Soot Framework (2006) Arvind Devaraj
 

Plus de Arvind Devaraj (20)

Deep learning for NLP and Transformer
 Deep learning for NLP  and Transformer Deep learning for NLP  and Transformer
Deep learning for NLP and Transformer
 
NLP using transformers
NLP using transformers NLP using transformers
NLP using transformers
 
Nodejs presentation
Nodejs presentationNodejs presentation
Nodejs presentation
 
Career hunt pitch
Career hunt pitchCareer hunt pitch
Career hunt pitch
 
Career options for CS and IT students
Career options for CS and IT studentsCareer options for CS and IT students
Career options for CS and IT students
 
Careerhunt ebook
Careerhunt ebookCareerhunt ebook
Careerhunt ebook
 
Hyperbook
HyperbookHyperbook
Hyperbook
 
Yourstory Android Workshop
Yourstory Android WorkshopYourstory Android Workshop
Yourstory Android Workshop
 
Android High performance in GPU using opengles and renderscript
Android High performance in GPU using opengles and renderscriptAndroid High performance in GPU using opengles and renderscript
Android High performance in GPU using opengles and renderscript
 
OpenGLES Android Graphics
OpenGLES Android GraphicsOpenGLES Android Graphics
OpenGLES Android Graphics
 
Broadcast Receiver
Broadcast ReceiverBroadcast Receiver
Broadcast Receiver
 
AIDL - Android Interface Definition Language
AIDL  - Android Interface Definition LanguageAIDL  - Android Interface Definition Language
AIDL - Android Interface Definition Language
 
NDK Programming in Android
NDK Programming in AndroidNDK Programming in Android
NDK Programming in Android
 
Google Cloud Messaging
Google Cloud MessagingGoogle Cloud Messaging
Google Cloud Messaging
 
OpenGLES - Graphics Programming in Android
OpenGLES - Graphics Programming in Android OpenGLES - Graphics Programming in Android
OpenGLES - Graphics Programming in Android
 
Operating system
Operating systemOperating system
Operating system
 
Sorting (introduction)
 Sorting (introduction) Sorting (introduction)
Sorting (introduction)
 
Data structures (introduction)
 Data structures (introduction) Data structures (introduction)
Data structures (introduction)
 
Graphics programming in open gl
Graphics programming in open glGraphics programming in open gl
Graphics programming in open gl
 
Thesis: Slicing of Java Programs using the Soot Framework (2006)
Thesis:  Slicing of Java Programs using the Soot Framework (2006) Thesis:  Slicing of Java Programs using the Soot Framework (2006)
Thesis: Slicing of Java Programs using the Soot Framework (2006)
 

Signal Processing Introduction using Fourier Transforms

  • 1. Introduction to Signal Processing 1 Introduction In this article, we discuss about signals, systems and transforms. Signals can be considered as functions. Audio signal is a one dimensional function of time whereas an image is a two dimensional function that varies in space. Systems manipulate signals, i.e they can be considered as a map from functions to func- tions. Transforms make signal processing easier by changing the domain in which the underlying signal is represented. 2 Signals Signals can be functions of time or space. For processing signals it is advanta- geous to represent them in in frequency domain. Several operations such as fil- tering out unnecessary frequencies can be performed efficiently in the frequency domain. Generally low frequency components represents the overall shape of the signal and high frequency components are caused due to noise or presence of edges in an image. To remove noise, high frequency components are reduced. To sharpen an image, high frequency components are emphasized. Thus it is easier to carry many operations in the frequency domain. 2.1 From time domain to frequency domain Fourier discovered that any periodic signal can be represented as combination of sinusoids of different amplitudes, frequencies and phases. Any periodic sig- 1 nal s(t) with period T0 (thus having fundamental frequency f0 = T0 can be represented as follows ∞ s(t) = an sin(2πnf0 t + φ) (1) n=0 1
  • 2. A phase shifted sine wave can be expressed in terms of sine and cosine functions due to the following identity. sin(A + φ) = sin(A)cos(φ) + sin(φ)cos(A) Thus we can express s(t) as sum of sines and cosines of different amplitudes and frequencies. Equation 1 becomes ∞ s(t) = an cos(2πnf0 t) + bn sin(2πnf0 t) (2) n=0 which is also written as ∞ s(t) = a0 + an cos(2πnf t) + bn sin(2πnf t) n=1 If the function has non zero value for f (0), it indicates the presence of cosine components. a0 represents the average value of the function over a time period. This is because the average value of sines and cosines over a time period is zero. it −it it −it Using the identities cos(t) = e +e 2 and sin(t) = e −e2i and letting An an −ibn ∗ an +ibn denote 2 and An denote 2 , Equation 2 can be represented by means of a single complex exponential. ∞ s(t) = An ej2πnf0 t + A∗ ej2πnf0 t n n=0 which can be written as ∞ s(t) = An ej2πnf0 t n=−∞ The above formula is known as fourier decomposition of s(t) into complex exponentials. This decomposition is a way of transforming the signal from the time domain to frequency domain. In the next section we will see how a signal and its decomposition into fourier series can be viewed in the vector space model. 2.2 Vector Space Model The set of signals forms a vector space. A vector space is a collection of vectors that is closed under linear combination, i.e. if two vectors v, w are in the space, then the vector av + bw is also in the space for scalars a and b(The condition says the space is closed under vector addition and scalar multiplication). A 2
  • 3. familiar example of vector space is the Euclidean space R3 . Any set of objects with operations addition and multiplication which are closed under linear com- bination forms a vector space. Under this definition polynomials, matrices and functions also form vector space. We can generalize familiar concepts in the Euclidean space to the more general vector space. The length or norm of vector v is given by n v = 2 vi i=0 The distance between two vectors v1 and v2 is the norm of the difference vector v1 − v2 . The angle between two vectors is closely related to the inner product < v1, v2 > due to the following relation. < v1, v2 > cosθ = v1 ∗ v2 Two vectors are said to be orthogonal if their inner product is zero. The concepts of length, distance and angle can be defined on any vector space. For instance, in the space of functions, the integral f (x).g(x) gen- eralizes the dot product in which summation is replaced by integration. The b functions f (x) and g(x) are said to be orthogonal on [a, b] if a f (x).g(x) = 0. For example the set of functions { ejn2πf t } n=0,1,2... are orthogonal. A basis is a minimal set of vectors that spans the entire space. If the elements in basis are orthogonal and have unit length , then they form orthonormal basis as formed by (i, j, k) in the euclidean space. A point in the euclidean space given by u = xi + yj + zk. The values x,y and z gives the magnitude of projection on these basis. To compute the magnitude of projection along i, we compute the inner product of u and i, thus x = u.i. A function s(t) can be viewed as a point in the space of functions. The fourier decomposition of the function given by ∞ s(t) = An ejn2πf0 t n=−∞ can be viewed as projection of the function onto orthonormal basis given by the complex exponential functions ejn2πf0 t . Finding the magnitude of projection is 3
  • 4. equivalent to finding the fourier coefficients. To compute the the magnitude of projection along ejn2πf0 t ,we compute the inner product of s(t) and ejn2πf0 t . Using the definition of inner product for functions, we get the fourier coefficients as T0 /2 1 An = s(t)e−jn2πf0 t dt T0 −T0 /2 3 Systems Systems maps signals to signals. To characterize a system we need to find its response for each and every input function, which is infeasible. Fortunately sys- tems that are linear and time invariant (LTI) can be characterized if its response for a small set of inputs is known. In a linear system, the principle of superpo- sition holds - if x1 and x2 produces responses y1 and y2 respectively, then input ax1 + bx2 produces the response ay1 + by2 . A system is said to be time invari- ant if a delay in input by t seconds causes the output to be delayed by t seconds. In the following sections, we will see that to characterize an LTI system it is sufficient if we know its response for the impulse function and that the output of an LTI system is just the convolution of the input with the impulse response. 3.1 Impulse Response Consider a signal that lasts for w seconds and has amplitude 1/w. In the limit- ing case as w → 0, the signal is called impulse. LTI systems have a remarkable property that they can be completely characterized by its response to the im- pulse function. @figure The input signal is divided into smaller ones, each short enough to act as an impulse to the system. In other words, the input signal is decomposed into an infinite number of scaled and shifted impulse functions. Each of these impulses produces a scaled and shifted version of the impulse response in the output signal. The final output signal is then equal to the combined effect, i.e., the sum of all of the individual responses. Thus if the response to the impulse function is known, the response of the input signal can be calculated. We show that the output is the convolution of the input with the impulse response of the system. 4
  • 5. 3.2 Convolution Convolution is a mechanism by which an input signal is shaped by another sig- nal to produce an output signal. We introduce convolution by considering the problem of smoothing a signal. Later we show that the output of a system is the convolution of the input with the impulse response. Consider a transformation that smoothes the signal by averaging adjacent signals - bn = (an + an−1 )/2. These kinds of transformations are used for re- ducing effects of noise. The transformation can also be described in terms of polynomial multiplication. If we represent the input sequence a0 , a1 , a2 .... by the polynomial A(x) = a0 + a1 x + a2 x2 + a3 x3 .... , the coefficient of bn in the 1 product B(x) = A(x) 2 (1 + x) is given by bn = (an + an−1 )/2 which is the 1 output sequence. The polynomial P (x) = 2 (1 + x) defines how the input signal is manipulated(convolved) to produce the output. Convolution and polynomial multiplication are closely related. For the product B(x) = A(x) ∗ P (x), the coefficient of the convolved sig- n nal bn is given by i=0 ai ∗ pn−i . In the continuous domain the summation is replaced by integration and the convolution of two function f (x) and g(x) u becomes C(u) = 0 f (x) ∗ g(u − x) We now show that the output of a system can be viewed as a convolution of the input signal with the impulse response of the system. Consider a system whose output is h(t) when given the input δ(t). Any input signal can be consid- ered as summation of scaled and shifted impulse functions i.e. For a continuous ∞ signal, s(t) can be viewed as −∞ f (τ )δ(t − τ )dτ . Since the response of δ(t) is ∞ h(t), the response for s(t) is −∞ f (τ )h(t − τ )dτ . Thus the convolution of the input signal with the impulse response gives the output signal. 4 Transforms and their applications Transforms make it easier for systems to manipulate signals. Any linear trans- formation can be described as a projection onto a new set of basis functions. Fourier Transform 5
  • 6. We have seen the fourier series for a periodic signal having frequency f0 is ∞ given by s(t) = n=−∞ An ejn2πf0 t and that An is given by T0 1 2 An = s(t)e−jn2πf0 t dt T0 −T0 2 The following figure plots the frequency components and the magnitude of An . Note that here the amplitudes are function of frequencies defined at discrete points. @figure As the frequency f0 decreases, these amplitudes become more closely spaced. For a non periodic signal , the time period T0 → ∞ and thus f0 → 0. The sepa- ration between successive harmonics becomes small and the amplitudes become a continuous function of frequency. Thus nf0 becomes the continuous variable f and the above formula for An becomes ∞ 1 Af = s(t)e−j2πf t dt (3) T0 −∞ The above transformation takes a function of time as input and produces a function of frequency i.e. s(t) → Af . This is called the Fourier Transform. The transform makes it easier to perform many operations that are difficult in the time domain. The fourier transform of the convolution of two functions s1 (t) and s2 (t) is equal to product of their fourier transforms. Intuitively, mul- tiplication emphasizes those frequencies that are present in both the signals. Thus for producing the convolution of two functions, it is easier to transform them into frequency domain, multiply them and transform back to time domain. Discrete Fourier Transform While processing signals on a computer, variables are discrete and the con- tinuous fourier transform is approximated by Discrete Fourier Transform. We sample a continuous function s(t) at intervals of ∆, generating a sequence of sampled values sk = s(k∆) collecting a total of N samples (1/∆ is the sampling frequency, which according to Nyquist theorem must be at least twice the fre- quency of the highest component present in the wave). In the continuous fourier transform, we have the values of the signal defined at each point of time and generate a function of frequency that is defined for all values. In DFT, we have the values of the signal at discrete points tk = k∆ 6
  • 7. represented as s(k) and generate a function of frequency that are valid at discrete frequencies An . In the discrete case Equation 3 becomes N −1 An = s(k)e−2πikn/N (4) k=0 The equation xN = 1 is of degree N and thus has N roots given by ωN , n 2πi (n=0,1... N and ω = e N . Thus Equation 4 can also be written as N −1 kn An = s(k)ωN (5) k=0 The DFT can be viewed as a transformation of N point signal into N fourier coefficients or as a matrix that maps an N-dimensional vector to N-dimensional vector. DFT can be used to speed up polynomial multiplication. We have already seen that polynomial multiplication is related to convolution and it is easy to convolve signals in frequency domain. We use these facts to speedup multipli- cation. Considering the coefficients of a polynomial (of degree N) as our signal, we get N fourier coefficients. (According to Equation 5, these correspond to the values of the polynomial evaluated at the complex roots of unity). These values give the point-value representation of the polynomial. To multiply two polyno- mials f (x) and g(x), we evaluate the polynomials at roots of unity, multiply the corresponding values to get the point-value representation of f (x) ∗ g(x) from which we can construct the polynomial f (x) ∗ g(x). Fast Fourier Transform The fast fourier transform is a computationally fast method to compute the DFT. Computing DFT directly for N points requires O(N 2 ) complex multiplication. FFT exploits the structure of DFT to reduce the complexity. Rewriting Equation 5 we get N −1 kn An = s(k)ωN k=0 kn kn An = s(k)ωN + s(k)ωN k is even k is odd (N/2)−1 (N/2)−1 2jn (2j+1)n An = s(2j)ωN + s(2j + 1)ωN j=0 j=0 7
  • 8. 2 Using the relation ωN = ωN/2 , we get (N/2)−1 (N/2)−1 jn n jn An = s(2j)ωN/2 + ωN s(2j + 1)ωN/2 j=0 j=0 Thus we have reduced the problem of computing N point DFT for s(k) to finding two N/2 point DFTs for s(j) and s(2j + 1). This is a divide and conquer approach where we have reduced the problem of size N to two subproblems of size N/2. It has complexity O(N logN ) Discrete Cosine Transform If the function is an even function, then the fourier transform consists of only cosine components and the transform becomes Discrete Cosine Transform. Thus DCT can be defined in terms of DFT by im- posing symmetry. DCT is used for compression in JPEG images. JPEG com- pression takes into account that the human eye, cannot detect high frequency components. Using a process of quantization, we retain all low frequency com- ponents. (The high frequency components are retained only if they have large coefficients). On the resulting coefficients run length encoding and huffman compression is applied 5 Conclusion We have seen how a signal can be viewed as a function in the vector space model of functions. Systems are used to manipulate signals and a special class of systems called LTI systems can be easily characterized by its impulse function. Transforms make it easier to manipulate signals. Transforms can be viewed as change of basis in the vector space model. Transformations have a number of applications including filtering, convolution, pattern recognition, solving partial differential equations, multiplication of polynomials and large numbers, analysis of time series, solving system of linear equations 8