BME310 Computingcw 6
BME310 Computingcw 6
Lecture #6
Chapter 4
x(t ) A cos(ot )
• However, digital computers and computer programs can not
process analog signals.
• Instead they store discrete-time versions of analog signals
x[n] x(nTs )
• This is because digital computers can only store discrete
numbers.
– There are computers called analog computers which do process
continuous-time signals
• Since the computer only stores numbers, how does one know
what continuous-time signal it represents?
BME 310 Biomedical Computing - 154
J.Schesser
Sampling
• We can obtain a discrete-time signal by sampling a
continuous-time signal at equally spaced time
instants, tn = nTs
x[n] = x(nTs) -∞ < n < ∞
• The individual values x[n] are called the samples of
the continuous time signal, x(t).
• The fixed time interval between samples, Ts, is also
expressed in terms of a sampling rate fs (in samples
per second) such that:
fs = 1/ Ts samples/sec.
time-sequence.
0.4
0.2
0
-0.2 0 2 4 6 8 10
following diagram,
-0.8
-1
0
0 2 4 6 8 10
-1
Hz.
• In the first case, where f = 0.2 -1
Hz, we have:
ˆ 2 (0.2)(1) .4
ˆ 2 (0.2)(1) .4
• Since a sinusoid is periodic in 0
0 2 4 6 8 10
x[n] A cos(ˆ n )
ˆ 2 (1.2)(1) 2.4 2.4 2 .4
x[n] A cos(2.4 n ) A cos(2 n 0.4 n ) A cos(0.4 n )
BME 310 Biomedical Computing - 161
J.Schesser
Aliasing
• This example
illustrates that two
1
discrete-time signal.
1. cos [2π(0.2) t]
-1
2. cos [2π(1.2) t]
• When this occurs we say that that these signals
are aliases of each other.
or negative integer):
0
̂ o, ̂ o 2 l, 2 l ̂ o
0 2 4 6 8 10
ˆ l
where l ˆ l f s and ˆ l ˆ o 2l , ˆ o is the principal alias, and l is an integer.
Ts
(ˆ o 2l ) f s
Therefore, l ˆ l f s (ˆ o 2l ) f s and f l
2
(2l ˆ o ) f s
since cos( ) cos( ) cos(2 ), then we can have ˆ l 2l ˆ o and f l
2
(2l ˆ o ) f s
or l 2l ˆ o and f l
2
0
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08
-1
0.5
0
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08
-1
BME 310 Biomedical Computing - 172
J.Schesser
Undersampling
• Since it is > π, 2.5π is NOT the principal alias
• The principle alias is 2.5π - 2π = 0.5π
0.5
0
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08
-1
0 0
0 2 4 6 8 10 0 2 4 6 8 10
-1 -1