Professional Documents
Culture Documents
BEET 3373
DR. NORHASHIMAH MOHD SAAD
SAMPLING
2
SAMPLING
3
SAMPLING
x(n) x(t ) xd (t ) x(t )d (t nTs )
n
4
SAMPLING
Sampling Process 5
SPECTRUM OF SAMPLED SIGNALS
• If x(t) has a spectrum X(f), then the spectrum of a sampled signal x(n) is
X (exp( j 2f )) FT [ x(n)] FT x(t ) xd (t ) FT x(t )d (t nTs )
n
x(t )d (t nTs ) exp( j 2ft)dt x(n) exp( j 2fnTs )
n n
X ( f nf s )
n
6
SPECTRUM OF SAMPLED SIGNALS
|X(f)|
-fm fm f
|X(exp(j2f)
|
• Increasing the sampling frequency will increase the storage space and
processing time.
f s 2 f max
8
Tone Freq = 1800 , Sampling Freq = 8000
Music 01
Music 02
• Time domain x(n)
• Discrete in time
• Aperiodic
• Frequency domain X(
• Continous frequency
• Periodic
• x(n) X(
•X
•x =
DISCRETE FREQUENCY
REPRESENTATIONS OF SIGNAL
• Consider DFT obtained by considering DFS in period of N, the
DFT pair defined by:
• Conversion from discrete frequency to discrete time
• X(k) x(n)
• High speed implementation of DFT.
• DFT speed up of while FFT speed up by NlogN
• Example :
• Given 2 signals as input and system impulse response as
below
1 1
x[n] [1 0 0]
2 4
h[n] [1 1 1 0 0]
• Determine the linear convolution(output y[n]) of these signals.
n -4 -3 -2 -1 0 1 2 3 4 5 y[n]
h( ) 1 1 1 0 0
x (0 ) 0 0 1/4 1/2 1 1
y[n] [1 3 / 2 7 / 4 3 / 4 1 / 4]
n -4 -3 -2 -1 0 1 2 3 4 5 y[n]
h( ) 1 1 1 0 0
x (0 ) 0 0 1/4 1/2 1 1
y[n] [1 3 / 2 7 / 4 3 / 4 1 / 4]
n -4 -3 -2 -1 0 1 2 3 4 5 y[n]
h( ) 1 1 1 0 0
x (0 ) 0 0 1/4 1/2 1 1
y[n] [1 3 / 2 7 / 4 3 / 4 1 / 4]
n -4 -3 -2 -1 0 1 2 3 4 5 y[n]
h( ) 1 1 1 0 0
x (0 ) 0 0 1/4 1/2 1 1
y[n] [1 3 / 2 7 / 4 3 / 4 1 / 4]
n -4 -3 -2 -1 0 1 2 3 4 5 y[n]
h( ) 1 1 1 0 0
x (0 ) 0 0 1/4 1/2 1 1
y[n] [1 3 / 2 7 / 4 3 / 4 1 / 4]
n -4 -3 -2 -1 0 1 2 3 4 5 y[n]
h( ) 1 1 1 0 0
x (0 ) 0 0 1/4 1/2 1 1
y[n] [1 3 / 2 7 / 4 3 / 4 1 / 4]
• For periodic continuous and discrete-time system, the output
y(t)&y[n] are defined as
y (t ) hT (t ) x(t ) y[n] h[n] x N [n]
• h(t)& h[n] are system impulse response and x(t) &x[n] are the input
signals. The operations that involved both these signals (which only
one of these signal in periodic way) known as circular convolution.
• Thus, the relationship in frequency domain will be as a
multiplication of spectrum of h(t) and x(t) as
1 1
x[n] [1 0 0]
2 4
h[n] [1 1 1 0 0]
• Determine the circular convolution (output y[n]) of these
signals…
n -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 y[n]
1 1 0 0 1 1 1 0 0 1 1 1 0
h( )
0 0 1/4 1/2 1 1
x (0 )
x(5 )
0 0 1/4 1/2 1
x (6 ) 0 0 1/4 1/2 1
x (7 ) 0 0 1/4 1/2 1
h( ) 1 1 0 0 1 1 1 0 0 1 1 1 0
x (0 ) 0 0 1/4 1/2 1 1
0 0 1/4 1/2 1
x (6 )
0 0 1/4 1/2 1
x (7 )
h( ) 1 1 0 0 1 1 1 0 0 1 1 1 0
x (0 ) 0 0 1/4 1/2 1 1
x (3 ) 0 0 1/4 1/2 1
x (5 ) 0 0 1/4 1/2 1
x (6 ) 0 0 1/4 1/2 1
x (7 ) 0 0 1/4 1/2 1
h( ) 1 1 0 0 1 1 1 0 0 1 1 1 0
x (0 ) 0 0 1/4 1/2 1 1
x (6 ) 0 0 1/4 1/2 1
x (7 ) 0 0 1/4 1/2 1
h( ) 1 1 0 0 1 1 1 0 0 1 1 1 0
x (0 ) 0 0 1/4 1/2 1 1
x (3 ) 0 0 1/4 1/2 1 ¾
x (5 ) 0 0 1/4 1/2 1
0 0 1/4 1/2 1
x (6 )
0 0 1/4 1/2 1
x (7 )
h( ) 1 1 0 0 1 1 1 0 0 1 1 1 0
x (0 ) 0 0 1/4 1/2 1 1
0 0 1/4 1/2 1
x (6 )
0 0 1/4 1/2 1
x (7 )
h( ) 1 1 0 0 1 1 1 0 0 1 1 1 0
x (0 ) 0 0 1/4 1/2 1 1
x (7 ) 0 0 1/4 1/2 1
h( ) 1 1 0 0 1 1 1 0 0 1 1 1 0
x (0 ) 0 0 1/4 1/2 1 1
h( ) 1 1 0 0 1 1 1 0 0 1 1 1 0
x (0 ) 0 0 1/4 1/2 1 1
y[n] [. .1 3 / 2 7 / 4 3 / 4 1 / 4 1 3 / 2 . .]
Circular convolution and zero
padding
• Zero is padding is utilized to ensure that circular convolution is
equal to linear convolution
• Zero padding is equal to both length of the signal plus 1.
circular convolution
• In general form
• Roots numerator & denumerator
• Learning Outcomes:
• Apply the inverse Z-transform
• Apply the conversion techniques from analog system to digital
system.
• H(z) h(n)
• Three techniques:
• Table Look-up Method
• Partial Fraction Expansion
• Long Division
• TWO techniques:
• Impulse invariant method
• Bilinear transformation
• Learning Outcomes:
• Uniform Distribution
• Triangular Distribution
Amplitude • Gaussian Distribution
-1.0 -0.5 0.0 0.5 1.0
Examples of Random Variables
Continuous-valued random variable: Discrete-valued random variable:
Uniform:
1
p( x) 1 0 x 1 p ( xi ) i 0,..., M 1
M
Triangular:
i
0 x 1 M 1 0 i M /2
x
p( x) p ( xi ) i
1 x 1 x 2 1 M / 2 i M 1
Gaussian: ( M 1)
( x )2
1
p ( x) e 2 2
x N/A
2
• For a uniformly distributed random variable:
E{( x x ) } ( x x ) 2 p ( x) dx
2 2
x
1 3 3
1 3 1 1
1
( x ( ) ( ) ( )
1 2 2 2 2 1 1 1
( x ) (1)dx
0 2 3 3 3 24 24 12
0
• For a discrete random variable:
x2 E{( xi x ) 2 } ( xi x ) 2 p ( xi )
i
• Following the analogy of a sample mean, this can be estimated from the data:
1
x2
N
( x[n]
n
x )2