1
00:00:00,860 --> 00:00:04,000
Let's get started.
We want to explore continuous-time.

2
00:00:04,000 --> 00:00:07,850
This is the time we live in the physical
reality of the world.

3
00:00:07,850 --> 00:00:10,210
And this we will contrast to discrete
time.

4
00:00:10,210 --> 00:00:12,150
The time that lives inside a computer.

5
00:00:14,230 --> 00:00:17,560
Module 6: Interpolation and Sampling.

6
00:00:17,560 --> 00:00:19,580
So the outline of the module is the
following.

7
00:00:19,580 --> 00:00:22,360
First we look at continuous-time signals.

8
00:00:22,360 --> 00:00:26,460
Mainly signals that live in the real world
that we inhabit every day.

9
00:00:26,460 --> 00:00:30,700
Then, we look at how to go from a
sequence, the elements

10
00:00:30,700 --> 00:00:36,460
we have seen so far, into continuous time
signals, and that's onto interpolation.

11
00:00:36,460 --> 00:00:37,860
Then we look at sampling.

12
00:00:37,860 --> 00:00:39,340
The cornerstone result here

13
00:00:39,340 --> 00:00:40,410
of this module.

14
00:00:40,410 --> 00:00:43,780
How to go from a continuous time signal to
a sequence.

15
00:00:43,780 --> 00:00:44,980
And under which conditions.

16
00:00:44,980 --> 00:00:48,520
This is a faithful representation of the
continuous time signal.

17
00:00:48,520 --> 00:00:51,780
This will involve to look at aliasing

18
00:00:51,780 --> 00:00:54,690
a nasty phenomenon that we need to
understand.

19
00:00:54,690 --> 00:00:57,780
Then we'll look at interpolation and
sampling in practice.

20
00:00:57,780 --> 00:01:00,540
Finally we look at the most important
application

21
00:01:00,540 --> 00:01:04,510
which is discrete time processing of
continuous time signals.

22
00:01:04,510 --> 00:01:08,185
This is when we take a signal from the
real word, we process

23
00:01:08,185 --> 00:01:11,880
it in a computer and we render the signal
in the real word.

24
00:01:13,830 --> 00:01:19,910
Module 6.1, The Continuous Time Paradigm.
First, we look

25
00:01:19,910 --> 00:01:25,220
at some models of the world and compare
digital with analog views of the world.

26
00:01:25,220 --> 00:01:28,480
Then we study continuous time signals in
some detail.

27
00:01:28,480 --> 00:01:29,980
We also introduce a continuous

28
00:01:29,980 --> 00:01:32,642
time fully transform, which is the last
form

29
00:01:32,642 --> 00:01:35,110
before we transform, we have not
encountered yet.

30
00:01:35,110 --> 00:01:39,490
And therefore, this is a time to meet this
very interesting mathematical object.

31
00:01:41,400 --> 00:01:44,580
We have seen these pictures before, these
are the two views of the world.

32
00:01:44,580 --> 00:01:49,820
On the left, you see the analog world, the
one we live in, and is shown by a picture

33
00:01:49,820 --> 00:01:55,250
of the Earth taken by the Apollo mission.
On the right side, you have a digital view

34
00:01:55,250 --> 00:01:58,120
of the world.
This is taken by digital camera.

35
00:01:58,120 --> 00:02:02,660
Then very strongly pixelized and the
values are actually also discrete.

36
00:02:02,660 --> 00:02:06,600
So this is a view that you have of the
world inside a computer.

37
00:02:06,600 --> 00:02:12,100
In short, this is a contrast between and
analog continuous view versus a discrete

38
00:02:12,100 --> 00:02:17,680
and digital view of the world.
We can show this in a block diagram form.

39
00:02:17,680 --> 00:02:20,730
We live in an analog world, so input and
output are

40
00:02:20,730 --> 00:02:23,660
from and to the analog world, but inside

41
00:02:23,660 --> 00:02:26,440
we process on the computer, which is
discrete time.

42
00:02:26,440 --> 00:02:28,190
The input is x of t.

43
00:02:28,190 --> 00:02:29,750
The output is y of t.

44
00:02:29,750 --> 00:02:34,420
But inside the box, we process sequences,
x of n, y of n.

45
00:02:34,420 --> 00:02:39,970
Examples of such boxes are for example the
processing we do for MP3 music

46
00:02:39,970 --> 00:02:45,460
or what we do on a digital camera.
Other examples are the following.

47
00:02:45,460 --> 00:02:45,740
You have

48
00:02:45,740 --> 00:02:49,020
a digital world.
For example, you synthesize an image.

49
00:02:49,020 --> 00:02:53,000
And you process it and then show it on a
computer screen.

50
00:02:53,000 --> 00:02:56,470
This is a typical example in computer
graphics or in video games.

51
00:02:56,470 --> 00:02:59,410
So the input to the box is a sequence.

52
00:02:59,410 --> 00:03:04,930
It is processed into an output, which is a
continuous time or continuous space image.

53
00:03:08,910 --> 00:03:12,200
Sometimes the box is used to take a
decision.

54
00:03:12,200 --> 00:03:14,770
So the input is analog, from the analog
world.

55
00:03:14,770 --> 00:03:17,550
The output is discrete, for example, to
decide

56
00:03:17,550 --> 00:03:19,900
something, should we take an action or
not.

57
00:03:19,900 --> 00:03:22,330
The processing, again, inside the box is
done on

58
00:03:22,330 --> 00:03:26,320
sequences, x[n] from the input, y[n] to
the output.

59
00:03:26,320 --> 00:03:29,480
This is typical, for example, in
monitoring applications.

60
00:03:29,480 --> 00:03:33,820
Is a certain level of temperature reached,
and therefore in control systems.

61
00:03:36,310 --> 00:03:37,390
Let's summarize.

62
00:03:37,390 --> 00:03:42,620
The digital world view is the one of
arithmetic, of combinatorics, what is

63
00:03:42,620 --> 00:03:45,040
usually referred to as computer science,
but

64
00:03:45,040 --> 00:03:48,180
also the world of discrete signals
processing.

65
00:03:48,180 --> 00:03:52,350
The analog view is the view of calculus.
Integrals and so on.

66
00:03:52,350 --> 00:03:56,670
Distribution, system theory.
Continuous time analog electronics.

67
00:03:56,670 --> 00:03:59,660
So you can see these are two sides of a
coin.

68
00:03:59,660 --> 00:04:01,730
Because we always have to deal with one
and

69
00:04:01,730 --> 00:04:05,090
the other when we want to process signals
in the real world.

70
00:04:07,660 --> 00:04:09,930
To make it slightly more mathematical, the

71
00:04:09,930 --> 00:04:13,050
digital view is you have a countable
index.

72
00:04:13,050 --> 00:04:15,790
So x-n, where n is an integer.

73
00:04:15,790 --> 00:04:17,150
So we have sequences.

74
00:04:17,150 --> 00:04:20,600
And we like to have sequences that are
square summable.

75
00:04:20,600 --> 00:04:22,280
So xn is an l2 of z.

76
00:04:22,280 --> 00:04:25,980
We have a frequency that is limited
between minus pi and pi.

77
00:04:25,980 --> 00:04:29,750
And we have a Fourier transform called the
discrete time Fourier transform.

78
00:04:29,750 --> 00:04:32,810
Which maps from l2 of z to capital l2

79
00:04:32,810 --> 00:04:34,810
of minus pi to pi.

80
00:04:34,810 --> 00:04:38,810
The analog world view is that we have real
time in second.

81
00:04:38,810 --> 00:04:40,370
T is measured in second.

82
00:04:40,370 --> 00:04:43,000
We have functions on the real line, x of
t.

83
00:04:43,000 --> 00:04:47,330
We like them square summable, that's what
we call capital L, two of r.

84
00:04:47,330 --> 00:04:50,330
The frequency is given in radians per
second

85
00:04:50,330 --> 00:04:53,900
and is unlimited unlike in the discrete
time case.

86
00:04:53,900 --> 00:04:58,355
And we have a fully transform that maps l2
of r functions into

87
00:04:58,355 --> 00:05:00,900
l2 of r functions, as we will see shortly.

88
00:05:03,030 --> 00:05:05,650
So how do we bridge the gap between these
two worlds?

89
00:05:05,650 --> 00:05:08,710
So here's an example where we have, for
example,

90
00:05:08,710 --> 00:05:12,570
computer synthesis generates a sequence
xn, we have a

91
00:05:12,570 --> 00:05:15,510
sound card on the computer, the sound card
has

92
00:05:15,510 --> 00:05:20,150
a system clock, so every Ts second it will
generate.

93
00:05:20,150 --> 00:05:25,490
An output based on xn.
This output will be driving a loudspeaker.

94
00:05:27,500 --> 00:05:31,640
In the other direction, we are speaking
into a microphone like I do right now.

95
00:05:31,640 --> 00:05:32,720
There is a sound card.

96
00:05:32,720 --> 00:05:36,680
It has a system clock, again with a
sampling interval Ts.

97
00:05:36,680 --> 00:05:41,100
And we get samples xn based on what was
measured by the microphone.

98
00:05:42,830 --> 00:05:45,110
So we can see that there is a very
intimate

99
00:05:45,110 --> 00:05:50,800
relationship between going from continuous
time, xt, to xn, the sequence.

100
00:05:50,800 --> 00:05:52,550
That's called sampling or from

101
00:05:52,550 --> 00:05:56,830
xn, the sequence, to x of t, that's called
interpolation.

102
00:05:56,830 --> 00:05:59,420
And we have to be able to understand very
clearly.

103
00:05:59,420 --> 00:06:02,740
When we can go from one to the other, when
these two

104
00:06:02,740 --> 00:06:07,270
are tightly related or they are not
face-full images of each other.

105
00:06:09,540 --> 00:06:12,770
So let's study continuous time for a
while.

106
00:06:12,770 --> 00:06:14,190
This is a new object.

107
00:06:14,190 --> 00:06:16,770
Because we have looked only at sequences
so far.

108
00:06:16,770 --> 00:06:19,960
So we have a real-time variable t.

109
00:06:19,960 --> 00:06:21,900
We have a signal x of t.

110
00:06:21,900 --> 00:06:25,560
Which is typically a complex function of
that real variable t.

111
00:06:25,560 --> 00:06:29,200
As announced, we like them to be of finite
energy,

112
00:06:29,200 --> 00:06:31,638
so the square integral of x of t is
finite.

113
00:06:31,638 --> 00:06:34,780
And on L2 of R, we can very naturally

114
00:06:34,780 --> 00:06:36,920
define an inner product between.

115
00:06:36,920 --> 00:06:43,490
Two functions, X of T, Y of T as an
integral of X star of T, Y of T DT.

116
00:06:43,490 --> 00:06:47,620
And here X star of course is a conjugate
of X of T.

117
00:06:47,620 --> 00:06:49,290
So complex conjugation.

118
00:06:49,290 --> 00:06:53,460
The energy is defined as inner product of
X with itself.

119
00:06:53,460 --> 00:06:57,600
We have just spent a module studying
discrete time filtering.

120
00:06:57,600 --> 00:07:00,670
So naturally, there are also continuous
time filters.

121
00:07:00,670 --> 00:07:04,430
These are called analog-linear timing
variant filters.

122
00:07:04,430 --> 00:07:06,670
They are given by a box, h.

123
00:07:06,670 --> 00:07:10,480
The notation is x star h.
Use the convolution.

124
00:07:10,480 --> 00:07:13,990
This can be written as an interproduct or
conveniently as

125
00:07:13,990 --> 00:07:17,430
an integral from minus infinity to
infinity of x tau.

126
00:07:17,430 --> 00:07:19,500
H of t minus tau, d tau.

127
00:07:20,710 --> 00:07:23,590
Please note very importantly the t minus
tau,

128
00:07:23,590 --> 00:07:26,280
so that corresponds to a time reversal
when

129
00:07:26,280 --> 00:07:27,560
you compute this integral.

130
00:07:28,750 --> 00:07:32,440
We promised a Fourier transform for
continuous time signals.

131
00:07:32,440 --> 00:07:34,540
Remember, in discrete time, there was this

132
00:07:34,540 --> 00:07:37,650
maximum angular frequency of plus minus
pi.

133
00:07:37,650 --> 00:07:39,500
In continuous times, there will be no such

134
00:07:39,500 --> 00:07:42,240
maximum frequency, it can go off to
infinity.

135
00:07:42,240 --> 00:07:44,210
So it's a concept of frequency is the
same.

136
00:07:44,210 --> 00:07:45,720
We take an inner product.

137
00:07:45,720 --> 00:07:51,310
Between the function xt and e to the minus
j omega t dt.

138
00:07:51,310 --> 00:07:53,480
Now this is a capital omega to be sure

139
00:07:53,480 --> 00:07:57,100
we understand this is a continuous time
Fourier transform.

140
00:07:57,100 --> 00:08:01,950
So, capital X of g, capital omega is such
a Fourier transform.

141
00:08:01,950 --> 00:08:07,270
We can invert this Fourier transform by
renormalizing with 1 over 2 pi,

142
00:08:07,270 --> 00:08:11,330
taking the integral of the Fourier
transform with respect to e to the j.

143
00:08:11,330 --> 00:08:12,670
Capital omega t.

144
00:08:12,670 --> 00:08:14,170
We will not study in great detail

145
00:08:14,170 --> 00:08:16,960
the conditions when it exists, under what
conditions

146
00:08:16,960 --> 00:08:21,460
it will converge, et cetera, but let us
assume for the sake of

147
00:08:21,460 --> 00:08:24,390
practicality that this transform, for the
object

148
00:08:24,390 --> 00:08:26,420
of interest for us, does actually exist.

149
00:08:28,220 --> 00:08:30,970
So this real world frequency's very
important because it

150
00:08:30,970 --> 00:08:34,400
does interact with what we have an
increasion for.

151
00:08:34,400 --> 00:08:38,190
Capital omega is expressed in radians per
second, we can also

152
00:08:38,190 --> 00:08:42,080
talk about hertz, that would be capital
omega divided by 2

153
00:08:42,080 --> 00:08:48,070
pi, so hertz is 1 over seconds.
And the period is one over the frequency

154
00:08:48,070 --> 00:08:54,280
in hertz, or 2pi over capital omega.
Let's look at an example.

155
00:08:54,280 --> 00:08:58,130
This is a good old Gaussian bell-shaped
curve.

156
00:08:58,130 --> 00:09:04,740
So of x of t is, is exponential of
t-square normalized by sigma square.

157
00:09:04,740 --> 00:09:06,870
And it has the usual look.

158
00:09:09,750 --> 00:09:12,270
It's continuous time for a transform
happens to

159
00:09:12,270 --> 00:09:17,270
be also a bell-shaped curve, simply
rescaled appropriately.

160
00:09:17,270 --> 00:09:18,320
This is rather an oddity.

161
00:09:18,320 --> 00:09:20,990
Usually for a transform of a function
doesn't look

162
00:09:20,990 --> 00:09:23,280
like itself, as we will see in the sequel.

163
00:09:25,360 --> 00:09:29,520
We have seen the convolution theorem for
discrete time convolution.

164
00:09:29,520 --> 00:09:32,590
The very same theorem holds for continuous
time as well.

165
00:09:32,590 --> 00:09:38,380
So if we have x of t convolved with H
leading to y of t, it's fully transformed,

166
00:09:38,380 --> 00:09:44,140
is simply the product of the two fully
transformed capital X and capital H.

167
00:09:46,670 --> 00:09:51,330
We introduce a new concept, namely the
concept of bandlimited functions.

168
00:09:51,330 --> 00:09:54,290
Omega N bandlimitedness means that the
Fourier

169
00:09:54,290 --> 00:09:57,380
transform of a function that is
bandlimited

170
00:09:57,380 --> 00:10:03,510
is strictly 0 outside an interval from
minus capital omega N to capital omega N.

171
00:10:05,580 --> 00:10:06,740
This is a very simple function.

172
00:10:06,740 --> 00:10:09,790
It's a rect function between minus omega n
and

173
00:10:09,790 --> 00:10:13,680
omega n, centered around zero, and of
height, capital G.

174
00:10:16,030 --> 00:10:18,970
So this was a Fourier transform of these
band

175
00:10:18,970 --> 00:10:21,720
limited functions, a prototype of a band
limited function.

176
00:10:21,720 --> 00:10:23,370
What is the time domain function?

177
00:10:23,370 --> 00:10:25,600
Capital phi is a rect function.

178
00:10:25,600 --> 00:10:27,940
So phi of t is going to be

179
00:10:27,940 --> 00:10:31,790
the inverse continuous time Fourier
transform written here.

180
00:10:31,790 --> 00:10:33,545
We had calculated this in module.

181
00:10:33,545 --> 00:10:36,620
5.5.
So let's not do it again.

182
00:10:36,620 --> 00:10:38,710
Please look it up if you don't remember
it.

183
00:10:38,710 --> 00:10:41,035
And the time delay function is

184
00:10:41,035 --> 00:10:44,710
up to a scaling.
One of these sync functions.

185
00:10:44,710 --> 00:10:48,280
We will normalize the sync function, so
that the area

186
00:10:48,280 --> 00:10:51,350
is equal to 2 pi in the fully transformed
domain.

187
00:10:51,350 --> 00:10:53,970
Then the inverse continuous time Fourier
transform will

188
00:10:53,970 --> 00:10:56,060
have a maximum of one at the origin.

189
00:10:58,420 --> 00:11:01,870
So lets fix this, G is equal to pi over
capital omega

190
00:11:01,870 --> 00:11:07,310
N so total bandwidth is 2 capital omega N,
and we define Ts

191
00:11:07,310 --> 00:11:12,410
as 2 pi divided by the bandwidth, or
subsequently pi over

192
00:11:12,410 --> 00:11:17,830
capital omega N and that will be a very
important sampling interval for this.

193
00:11:17,830 --> 00:11:18,590
Sinc function.

194
00:11:20,590 --> 00:11:24,750
So now we have this prototypical
bandlimited function.

195
00:11:24,750 --> 00:11:28,730
On the one hand, capital of phi is the
rect function.

196
00:11:28,730 --> 00:11:33,885
And phi of t is the sinc function, t over
capital Ts.

197
00:11:35,260 --> 00:11:38,060
And we see it now in normalized fashion so
it's

198
00:11:38,060 --> 00:11:41,800
a box function from minus capital omega to
capital omega.

199
00:11:41,800 --> 00:11:43,950
The height is pi over capital omega.

200
00:11:45,740 --> 00:11:49,880
Its time domain function phi of t has a
maximum as the origin

201
00:11:49,880 --> 00:11:51,250
equal to one.

202
00:11:51,250 --> 00:11:55,250
And it has zero crossings at multiples of
Ts.

