Title: Week 2 (Chapter 2)
1- Week 2 (Chapter 2)
- Signals are Functions
- Systems
2A signal is a function
Each function has four things 0 the
name (f, g, sin, cos, sound, ) 1
the domain ( a set ) 2 the range (
a set ) 3 the graph or assignment (
for every domain element, a range
element )
3Function definition
Let f Domain ? Range such that ? x ? Domain,
f ( x ) expression
4Air pressure
Signal
Time
Voice Time ? Pressure Doman Time 0,1 Range
Pressure Reals graph(Voice) red points ?
Time X Pressure
5- Signals are modeled as functions
- But there are many choices in selecting the
function domain and range - The good engineer selects the choice appropriate
to the task
6Examples from Topic notes/Signals/Sound
Voice 0,1 ? Pressure IntegerVoice 0,1 ?
Integers16 ComputerVoice DiscreteTime ?
Integers16 in which DiscreteTime 0, 1/8000,
2/8000,
7Examples from Topic notes/Signals/Images
Image VerticalSpace X HorizontalSpace ?
Intensity VerticalSpaceX HorizontalSpace
a,b X c,d Intensity black, white
Image(row,col) ? Intensity
DigitalImage VerticalSpaceX HorizontalSpace
1,2, ,300X1,2,,200 ? Intensity 0,1, ,
255 Integers8
ColorDigitalImage VerticalSpaceX HorizontalSpace
1,2, ,300X1,2,,200 ? Intensity3 0,1,
, 255 x 0, , 255x0, ,255 Integers83
8Two very important definitions 1. function
composition ?
If f X ? Y, g Y ? Z , g ? f X ? Z
is defined by ? x ? X, ( g ? f ) ( x )
g ( f ( x ) ) ? Z
x
g(f(x))
f(x)
X
Y
Z
92. Function or Signal Space
For domain X, and range Y, X ? Y
f domain ( f ) X ? range ( f ) Y
set of all functions whose domain X, and
range Y
Sounds Time ? Pressure BitSequences Nats
? 0,1
10Images VerticalSpace x HorizontalSpace ?
Intensity3 is the set of all color
images. Suppose VerticalSpace 1, , 300,
HorizontalSpace 1,, 200
11Since Domain(Varaiya) 1, , 300 x 1, ,
200, is finite, graph (Varaiya) can be given as
this table
(1,1) Varaiya (1,1)
(1,2) Varaiya (1,2)
(1,200) Varaiya (1,200)
(2,1) Varaiya (2,1)
(200,300) Varaiya (200,300)
in which Varaiya (i,j) is an element of Intensity3
12or as a 300 x 200 matrix whose (i, j) th
element is Varaiya (i,j) ? Intensity3
Varaiya(1,1) Varaiya (1,200)
Varaiya (i, j)
Varaiya (300,1) Varaiya (300,200)
13So Images, the space of all images, can be
represented as the space of all 300 x 200
matrices, whose entries are elements of
Intensity3
Images 1, , 300 x 1, , 200 ? Intensity3
14Video (t) ? Images this is the tth frame
Video (t)(i, j) ? Intensity3 this is the
(i,j)th pixel of the tth frame
15An alternative signal is AltVideo DiscreteTime
x VerticalSpace x HorizontalSpace ?
Intensity3, in which AltVideo (t, i, j) is the
(i,j)th pixel value of frame t
The two definitions are related by ? t,
i, j AltVideo(t, i, j) Video (t)(i,j)
16Space of signals
17A space of signals is of the form X ? Y We will
be specially interested in the case where the
domain X represents Time Examples AnalogSounds
0,1 ? Pressure DigitalSounds 0,1/8000,
? Integers16
18PositionSpeed of a vehicle is a signal
in PositionSpeeds 0,5 ? Reals2
19(No Transcript)
20Image processing system
21Lane changing
Shock wave
22Lane changing
23Shock wave
24Image processing system (IPS)
Time ? Vehicle x Lane x Position or
Time x Vehicle s ? Lane x Position
IST
output signal
input signal
25StereoSounds Time ? Pressure2
Alternatively, SteroSounds LeftSounds x
RightSounds where LeftSounds RightSounds
Time ? Pressure
26A record or log of the successive buttons that
are pressed in the Cory Hall elevator may look
like 1, 4, Open, Close, 3, 2, B, 5
We could model this as a signal Record Indices ?
B,1,2,3,4,5, Open, Close where Indices
0,1,2, , N
The space of all such signals is Records
Indices ? Events Events B, 1, , Close
27In an event sequence, the domain Indices
represents succession, rather than quantitative
time.
Other event sequences DoorRecord Indices ?
enter, leave is a log of persons entering or
leaving 10 Evans eg. DoorRecord (e,l,l,e,e, )
NumberRecord Indices ? Integers is a log of
number of people in 10Evans after
each enter,leave event eg. NumberRecrod
(6,5,4,5,6, )
DoorRecord ? Indices ? enter, leave
NumberRecord ? Indices ? Integers
28Systems
29A system S is a function InputSignals ?
OutputSignals with InputSignals D ?
R, OutputSignals D ? R
S
y S(x) ? OutputSignals
x ? InputSignals
3010Evans Ints ? enter, leave ? Ints ?
Ints
OutputSignals
InputSignals
y (6,5,4,5,6, )
u (e,l,l,e,e, )
10Evans
5
initial number in room
31The system 10Evans can be specified as follows
y 10Evans (u), and for all n ? Ints , y(n)
is given by
where
32How do you give S?
33How do you give Q?
34S
u?Accels
v?Speeds
y?Positions
Q
y(0)
v(0)
SºQ Accels ? Positions 0,5 ? Reals
? 0,5 ? Reals
35Other examples TopicNotes/Systems/DTMF
Sounds
KeypadSequences
DTMF