You are on page 1of 30

Esantionarea semnalelor

Discretizarea variatiei in timp a semnalului.

Teorema esantionarii
Esantionarea ideala

u ( t ) =

1

t + t

2
2

x ( t ) u ( t ) x ( 0 ) u ( t )

x ( t ) u ( t kTe ) x ( kTe ) u ( t kTe )


x (t )

k =

u ( t kTe )

lim u ( t ) = ( t ) ;

x ( kTe ) u ( t kTe )

k =

lim

0 k =

u ( t kTe ) =

x ( t ) = x ( t ) Te ( t ) =

( t kTe ) = T ( t )

k =

x ( kTe ) ( t kTe )

k =

x ( t ) = x ( t ) Te ( t ) =

x ( kTe ) ( t kTe )

k =

Spectrul semnalului esantionat


ideal
Te (t )

2
2 2
;
= e
k
Te k =
Te Te

X () = F {x(t )Te (t )} =
^

1
2
2
=
k
X ()
2
Te k =
Te

1
2 1
2
=

X () k
X k
k =
Te k =
T
T
T

e
e
e

X () =

1
2

X k
Te k =
Te

Eroarea de aliere.

Teorema esantionarii semnalelor


de banda limitata

e > 2M
M c e M
Nu apare aliere.
H r (0 ) = Te

Te , c
H r () = Te pc () =
M c e M
0 , > c
xr (t ) = x(t ) hr (t ) X r () = X () H r () =
=

1
X ( ke )Te p () = X (),
c
Te k =

xr (t ) = x(t ) , a.p.t

e M < M
Apare alierea.

H r () = Te pc () hr (t ) = Te

sin ct
t

sin ct
x(kTe )(t kTe ) =
k =
t

sin ct
sin c (t kTe )
= x(kTe )Te
(t kTe ) = x(kTe )Te
=
k =
k =
t
(t kTe )
xr (t ) = hr (t ) x(t ) = Te

k =

sin c (t kTe )
2c
x(kTe )
e
c (t kTe )

Frecventa de esantionare minima este e = 2M si poarta


denumirea de frecventa de esantionare Nyquist. In cazul
esantionarii la frecventa Nyquist formula de reconstructie

sin M (t kTe )
devine : xr (t ) = x(kTe )
k =
M (t kTe )

Harry Nyquist , (February 7, 1889 April 4, 1976)


was an important contributor to information theory.
He was born in Nilsby, Sweden. He emigrated to the
USA in 1907 and entered the University of North
Dakota in 1912. He received a Ph.D. in physics at
Yale University in 1917.
He worked at AT&T's Department of Development and Research from 1917 to
1934, and continued when it became Bell Telephone Laboratories in that year,
until his retirement in 1954. As an engineer at Bell Laboratories, he did
important work on thermal noise ("JohnsonNyquist noise"), the stability of
feedback amplifiers, telegraphy, facsimile, television, and other
communications problems. In 1932, he published a classical paper on stability
of feedback amplifiers (H. Nyquist, "Regeneration theory", Bell System
Technical Journal, vol. 11, pp. 126-147, 1932). Nyquist stability criterion can
now be found in all textbooks on feedback control theory. His early theoretical
work on determining the bandwidth requirements for transmitting information,
as published in "Certain factors affecting telegraph speed" (Bell System
Technical Journal, 3, 324346, 1924), laid the foundations for later advances by
Claude Shannon, which led to the development of information theory.

Teorema WKS (Whittaker,


Kotelnicov, Shannon)
Daca semnalul x(t ) este de banda limitata la M , in sensul ca X () 0

pentru > M ,atunci x(t ) este unic determinat de multimea esantioanelor

sale {x(nTe ) n Z }, daca e 2M , adica frecventa de esantionare este cel

putin dublul frecventei maxime.In conditiile de mai sus semnalulinitial x(t )

se poate reconstitui din esantioanele sale, a.p.t prin relatia :


x(t ) =

k =

x(kTe )

2c sin c (t kTe )
e c (t kTe )

cu conditia ca c sa fie astfel ales incat sa satisfaca relatia : M c e M .

Edmund Taylor Whittaker

Vladimir Kotelnikov

Claude Shannon

Wikipedia

Edmund Whittaker was educated to Trinity College, Cambridge starting 1892.


After Whittaker became a Fellow of Trinity College he began to teach and give
lecture courses and, among his first pupils were G H Hardy and J H Jeans.
Whittaker made revolutionary changes to the topics taught at Cambridge. He
taught a course based on his famous book A Course of Modern Analysis
(1902). This work is important in the study of functions of a complex variable.
It also develops the theory of special functions and their related differential
equations. Other courses Whittaker taught at Cambridge included astronomy,
geometrical optics, and electricity and magnetism. Hardy and Jeans were not
the only famous mathematicians which Whitttaker taught at Cambridge.
His pupils included Bateman, Eddington, Littlewood, Turnbull,
and Watson. An application which interested him came through his association
with actuaries in Edinburgh who were dealing with life assurance. This motivated
him to study the mathematics lying behind somewhat ad hoc methods that the
actuaries were using and Whittaker proved some important results on interpolation
as a consequence.

Vladimir Aleksandrovich Kotelnikov (Russian, September 6, 1908 in Kazan


February 11, 2005 in Moscow) was an information theory pioneer from the
Soviet Union. He was elected a member of the Russian Academy of Science, in
the Department of Technical Science (radio technology) in 1953.
1926-31 study of radio telecommunications at the Moscow Power Engineering
Institute, dissertation in engineering science.
1931-41 worked at the MEI as engineer, scientific assistant, laboratory director
and lecturer.
1941-44 worked as developer in the telecommunication industry.
1944-80 full professor at the MEI.
1953-87 deputy director and since 1954 director of the institute for radio
technology and electronics at the Russian Academy of Science.
1964 Lenin Prize
1970-88 vice-president of the RAS; since 1988 adviser of the presidium.
He is mostly known for having discovered, independently of others (e.g.
Edmund Whittaker, Harry Nyquist, Claude Shannon), the sampling theorem in
1933. This result of Fourier Analysis was known in harmonic analysis since the
end of the 19th century and circulated in the 1920s and 1930s in the engineering
community. He was the first to write down a precise statement of this theorem in
relation to signal transmission.

Shannon was born in Petoskey, Michigan. His childhood hero was Thomas
Edison, whom he later learned was a distant cousin. In 1932 he entered the
University of Michigan, where he took a course that introduced him to the
works of George Boole. He graduated in 1936 with two bachelor's degrees,
one in electrical engineering and one in mathematics, then began graduate
study at the Massachusetts Institute of Technology (MIT), where he worked
on Vannevar Bush's differential analyzer, an analog computer. A paper drawn
from his 1937 master's thesis, A Symbolic Analysis of Relay and Switching
Circuits, was published in the 1938 issue of the Transactions of the American
Institute of Electrical Engineers. Next, Shannon worked on his dissertation at
Cold Spring Harbor Laboratory, funded by the Carnegie Institution, to develop
similar mathematical relationships for Mendelian genetics, which resulted in
Shannon's 1940 PhD thesis at MIT, An Algebra for Theoretical Genetics.
Shannon then joined Bell Labs to work on fire-control systems and
cryptography during World War II, under a contract with section D-2 of the
National Defense Research Committee. In 1948 Shannon published A
Mathematical Theory of Communication, an article in two parts in the Bell
System Technical Journal. He is also credited with the introduction of
Sampling Theory.
He returned to MIT to hold an endowed chair in 1956.

Shannon and his famous electromechanical


mouse Theseus, named after the Greek
mythology hero of Minotaur and Labyrinth
fame, and which he tried to teach to come
out of the maze in one of the first
experiments in artificial intelligence.

Hobbies and inventions


Outside of his academic pursuits,
Shannon was interested in juggling,
unicycling, and chess. He also
invented many devices, including
rocket-powered flying discs, a
motorized pogo stick, and a flamethrowing trumpet for a science
exhibition. One of his more
humorous devices was a box kept on
his desk called the "Ultimate
Machine. Otherwise featureless, the
box possessed a single switch on its
side. When the switch was flipped,
the lid of the box opened and a
mechanical hand reached out, flipped
off the switch, then retracted back
inside the box.

Reconstructia prin filtrare trecejos ideala

x (t ) =

2
x ( kTe ) c

k =

x ( nTe ) =

sin c ( t kTe )
c ( t kTe )

2
x ( kTe ) c

k =

sin c ( nTe kTe )

c ( nTe kTe )

e
M Te =
2

sin ( n k )
=
x ( nTe ) = x ( kTe )
(n k )
k =

M =

x ( kTe ) n ,k

k =

= x ( nTe )

1, n = k
n ,k =
0, n k

Tema de curs: Demonstrati ca relatia de reconstructie reprezinta o


descompunere a semnalului initial intr-o baza ortonormata a
spatiului semnalelor de energie finita si banda limitata.

Reconstructia prin interpolare


Te

sin 2
H r ( ) = Te
Te

Reconstructia prin extrapolare


de ordinul zero
T
hr ( t ) = pTe t e
2

2
Te
2 =
e

T
T
sin e
j e
2
= e 2 Te
Te
2
j

Te
2

2 sin

H r ( ) = e

=e

Te
2 T
e

Te
2 =
Te
2

sin

sin

10

Esantionarea ideala a
semnalelor periodice
M = N 0 ; 0 =

2
; e = M 0
T0

Pentru ca sa nu apara suprapunerea


lobilor centrali este necesar ca:
N0 < e N 0 = 0 ( M N )
Diferenta dintre 0 ( M N ) si N 0
trebuie sa fie de forma:
0 ( M N ) N 0 = R0 , R=1,2,...
sau
e = M 0 = ( 2 N + R ) 0
adica
e = ( 2 N + R ) 0 = 2M + R0 ; R=1,2,...

T , c
H r ( ) = Te pc ( ) = e
; N0 < c < e N 0
0 , > c
Pentru a evita aparitia erorilor de aliere este necesar ca:
e N 0 > N 0 sau e > 2 N 0 = 2M
Spre deosebire de semnalele aperiodice unde e 2M ,
pentru semnalele periodice trebuie sa esantionam astfel incat
e > 2M . Pe perioada celei mai rapide componente spectrale
trebuie sa prelevam mai mult de doua esantioane (adica cel putin
3).

11

Daca T0 este perioada fundamentalei si daca esantionarea se


face conform relatiei e = ( 2 N + R ) 0 atunci

2
2
= ( 2N + R)
;
Te
T0

T0
2N + R
Doar 2N+R esantioane pot fi distincte ca urmare a periodicitatii
R=1,2,...sau Te =

semnalului supus esantionarii. Toate pot fi prelevate


intr-o singura perioada a fundamentalei T0 .

Acelasi rezultat se poate obtine si preluand


esantioane succesive din perioade succesive.
x ( kTe ) = x ( T0 + kTe ) = x ( kT0 + kTe )
T0
2N + R
Aceasta posibilitate este valorificata in
constructia osciloscoapelor cu esantionare.

Te ' = kT0 + Te = kT0 +

12

http://www.jhu.edu/~signals/sampling/index.html
Tema de curs: Folositi acest
applet pentru ca sa studiati
esantionarea unui semnal
sinusoidal.

Relatii energetice
Pentru semnale aperiodice esantionate este adevarata
relatia de tip Rayleigh:

W=

x ( t ) dt = Te
2

2
x ( kTe )

k =

Pentru semnale periodice esantionate este valabila relatia


de tip Parseval:
2
1
1
P=
x ( t ) dt =

T0 T
M
0

M 1

2
x ( kTe )

; M =2N +R, R =1,2,...

k =0

Energia sau puterea pot fi calculate fie din forma de variatie in timp
fie in domeniul frecventa.

13

Esantionarea cu retinere

x ( t ) = x ( t ) Te ( t ) h ( t ) = x ( t ) h ( t )
j
t
h ( t ) = p t t e
2

t
2

t
t
t
sin
2 = e j 2 t
2
t

2 sin

Spectrul semnalului esantionat


cu retinere

14

Acest caz se numeste


esantionare cu memorare.

Esantionarea naturala

x ( t ) = x ( t ) qTe ( t ) = x ( t ) h ( t ) Te ( t ) =

t
unde h ( t ) = p t t H ( ) = e
2

x ( t ) h ( t kTe ) = x ( t ) h ( t kTe )

k =

jt
2

k =

t
2 sin
2

15

Spectrul semnalului esantionat


natural

16

Relatia dintre spectrul unui


semnal discret si spectrul
semnalului analogic din care
provine

17

Intre cele doua axe de frecventa corespunzatoare spectrului semnalului analogic esantionat respectiv
spectrului semnalului discret exista relatia: = Te . Se explica acum si natura periodica a spectrului
semnalului discret X d ( ) . Intre M si M exista relatia: M = M Te ; Te

.
M

18

Esantionarea semnalelor
discrete
In prelucrarea numerica a semnalelor apar situatii in care,
ulterior achizitionarii esantioanelor, se constata ca frecventa
de esantionare a fost prea mare. In astfel de situatii, cand nu
se mai poate esantiona semnalul analogic, este posibila
esantionarea semnalului numeric, retinandu-se tot a N-a valoare. Fie:
N [ n] =

[ n - kN ]

k =

Semnalul discret esantionat, x [ n ] , se obtine prin produsul:


x [ n] = x [ n] N [ n] = x [ n]

k =

k =

[ n kN ] = x [ kN ] [ n kN ].

N=3.

19

N=3.

Cum M = Te M , unde M este frecventa maxima din

spectrul semnalului analogic din care provine x [ n ] ,


iar Te pasul cu care acest semnal analogic a fost
esantionat, rezulta:

NTe
; Te '
; Te ' = NTe
M
M
S-ar fi respectat teorema WKS chiar daca semnalul

x ( t ) ar fi fost esantionat cu pasul Te ' . Daca e M < M


apare suprapunerea lobilor spectrali vecini, adica
erori de tip "alias".

20

Reconstruirea semnalului
discret din esantioanele sale

N ,
Hr ( ) =
0,

2k c
M c e M .
in rest

Raspunsul la impuls al filtrului de reconstructie este:


sin nc

; c = e =
.
hr [ n ] =
2
nc
N
xr [ n ] = x [ n ] hr [ n ] = x [ n ]
x [ n] =

x [ k ] hr [ n k ]

k =

Dar x [ k ] = 0 pentru k Nm si x [ Nm ] = x [ Nm] si deci

sin n m
N

x [ n ] = x [ Nm] hr [ n Nm ] = x [ Nm ]

m =
m =
n m
N

21

Esantionarea si decimarea unui


semnal discret

22

N=2.

23

Esantionarea spectrului unui


semnal discret de durata finita

24

Fie x [ n ] cu suportul 0 n M 1. In urma esantionarii spectrului acestui semnal se obtine


semnalul x [ n ] periodic de perioada N =

2
. Daca N M nu se produce suprapunerea
e

grupurilor temporale corespunzatoare diverselor valori k.

2
, 0 n N 1
Prin multiplicarea semnalului x [ n ] cu fereastra temporala rectangulara wr [ n ] = N
0 ,
in rest
se obtine semnalul reconstruit xr [ n ] , identic cu semnalul x [ n ] : xr [ n ] = x [ n ] = x [ n ] wr [ n ] .

25

Daca spectrul X ( ) se esantioneaza prea rar, M < N , apare suprapunerea


grupurilor temporale, adica erori de tip "alias". Semnalul x [ n ] nu mai poate
fi reconstruit din spectrul esantionat.

Masuri practice la esantionarea


semnalelor analogice
De obicei nu se cunoaste largimea de banda a semnalului ce
urmeaza a fi esantionat. Acesta poate avea componente spectrale
de frecventa mare, neinteresante in aplicatia considerata.
Acestea pot fi de exemplu cauzate de zgomotul ce insoteste
semnalul util. Exista deci riscul aparitiei erorilor de tip "alias".
Pentru evitarea lor se prevede in structura lantului de prelucrare
a semnalului, inaintea circuitului de esantionare, un filtru trece jos
numit filtru "anti-alias" sau filtru de garda.

26

Esantionarea trebuie facuta cu


o frecventa de cel putin 2 ori
mai mare decat frecventa de
oprire s e 2s .
De asemenea trebuie sa avem
M p . Deci:
e
.
2
Cu cat banda de tranzitie s p
M p < s

este mai mare, cu atat frecventa


de esantionare trebuie sa fie
mai mare decat frecventa Nyquist
2M .

Banda de tranzitie
mai mare ordin
de filtru mai redus,
mai putine elemente
constructive, mai ieftin.
Cu scaderea lui 2 scad
erorile de tip "alias" dar
cresc s si deci si e .

Sisteme de telefonie numerica - f M = 3,4 KHz, f e = 8 KHz.


Sisteme de televiziune

f M 5 MHz, f e = 18 MHz.

27

Semnal de vorbire fara aliasing.


Semnal de vorbire cu aliasing.
Semnal muzical fara aliasing.
Semnal muzical cu aliasing.

Esantionarea semnalelor trece


banda
Semnale de tip "trece jos" - spectrul concentrat in benzi care includ frecventa nula.
Semnale de tip "trece banda" - au suportul spectrului de forma [ M , m ] [ m ,M ] .
Reconstructia perfecta a unui semnal
trece banda esantionat ideal se poate
realiza pe baza teoremei WKS, e 2M .
Uneori semnalele trece banda pot fi
reconstruite din esantioanele lor chiar daca
s-a folosit o frecventa de esantionare mai
mica decat frecventa Nyquist.

28

Cazul semnalelor trece banda


de banda ingusta
M m
< 1.
m
Suportul spectrului unui semnal trece banda de banda ingusta
esantionat ideal este de forma:
supp { X e ( )} =

nZ

{[ M + ne ,m + ne ] [m + ne ,M + ne ]} .

Semnalul trece banda de banda ingusta poate fi reconstruit


perfect din esantioanele sale chiar daca a fost folosita o
frecventa de esantionare mai mica decat frecventa Nyquist.

Conditia de reconstructie perfecta este:

[ M

+ k e , m + k e ] [ m + l e ,M + l e ] = , k , l Z .

Pentru l = 0 , conditia devine [ M + k e ,m + k e ] [ m ,M ] = k Z .


adica:
-M + k e m
2
2M
e m .
sau

k +1
k
M + ( k + 1) e M
Daca exista valori intregi k , pentru care aceasta conditie este satisfacuta, atunci
exista valori ale frecventei de esantionare inferioare frecventei Nyquist pentru
care semnalele trece banda de banda ingusta pot fi reconstruite in urma
esantionarii ideale.

29

Solutia din multimea numerelor intregi a dublei inecuatii


m
obtinute este: 0 < k
. Notand cu n0 partea intreaga
M m

a fractiei m / ( M m ) , rezulta ca frecventa de esantionare


2 2
va apartine unor intervale de forma M , m cu k {1,...,n0 } .
k +1 k
Exemplu

m = 8 si M = 10. Valoarea factorului n0 este

m
= 4.
m M

Valorile admisibile pentru k sunt 1, 2, 3 si 4. Acestor valori le


corespund urmatoarele domenii pentru frecventa de esantionare:

{4} [5 , 5,33] [ 6,66 , 8] [10 , 16] [ 20 , ] .

30

You might also like