Week 2 (Chapter 2) 1.Signals are Functions 2.Systems.

Slides:



Advertisements
Similar presentations
The Function Concept DEFINITION: A function consists of two nonempty sets X and Y and a rule f that associates each element x in X with one.
Advertisements

Week 1 Chapter 1 + Appendix A Signals carry information Signals are represented by functions Systems transform signals Systems are represented by functions,
Week 2/3 1.System interconnections (block diagrams) 2.Finite State Machines (Chapter 3)
EECS 20 Chapter 21 Defining Signals and Systems Last time we Introduced mathematical notation to help define sets Learned the names of commonly used sets.
EECS 20 Chapter 21 Defining Signals and Systems Last time we Introduced mathematical notation to help define sets Learned the names of commonly used sets.
EECS 20 Lecture 3 (January 22, 2001) Tom Henzinger Sets, Tuples, Functions.
Week 1 1.websitewebsite 2.takehome examtakehome 3.Chapter Appendix A.
1 Images and Transformations Images by Pawan SinhaPawan Sinha.
EECS 20 Lecture 5 (January 26, 2001) Tom Henzinger Signals.
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
1 Section 1.8 Functions. 2 Loose Definition Mapping of each element of one set onto some element of another set –each element of 1st set must map to something,
4-6 3x3 Matrices, Determinants, & Inverses
Warm Up Find a triple if r = 10 and s = 2.
Inverse Trig Functions. Recall That for a function to have an inverse that is a function, it must be one-to-one—it must pass the Horizontal Line Test.
1.1 Relations and Functions
Functions A function is a relationship between two sets: the domain (input) and the range (output) DomainRange Input Output This.
Digital Images Chapter 8 Exploring the Digital Domain.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall. 1.2 Basics of Functions and Their Graphs.
Functions Copyright © J. Mercer, A function is a number-machine that transforms numbers from one set called the domain into a set of new numbers.
Exponential Functions
April 10, 2002Applied Discrete Mathematics Week 10: Relations 1 Counting Relations Example: How many different reflexive relations can be defined on a.
Chapter 3 Functions Functions provide a means of expressing relationships between variables, which can be numbers or non-numerical objects.
Chapter 1 A Beginning Library of Elementary Functions
C ollege A lgebra Functions and Graphs (Chapter1) L:8 1 Instructor: Eng. Ahmed abo absa University of Palestine IT-College.
Copyright © 2007 Pearson Education, Inc. Slide 8-1.
Copyright © 2011 Pearson Education, Inc. Slide
DO NOW: 6.3: w/s C: Perform the indicated operation. 1.) Find g(f(x)) if f(x) = 2x 2 – x and g(x) = 2.) Find g(h(8)) if g(x) = -x 2 and h(x) =
Chapter 2 : Business Information Business Data Communications, 6e.
Image Similarity Longin Jan Latecki CIS Dept. Temple Univ., Philadelphia
Chapter 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs BY: MISS FARAH ADIBAH ADNAN IMK.
Chapter 7 7.6: Function Operations. Function Operations.
Discrete Mathematics Relation.
Domain and Range Restriction Pt What are the different symbols that you use when writing domain and range restrictions? Write your answer in a.
Do Now: Find f(g(x)) and g(f(x)). f(x) = x + 4, g(x) = x f(x) = x + 4, g(x) = x
Temperature Readings The equation to convert the temperature from degrees Fahrenheit to degrees Celsius is: c(x) = (x - 32) The equation to convert the.
Chapter 1.2 Functions. Function Application The value of one variable often depends on the values of another. The area of a circle depends on its radius.
CHAPTER 1: FUNCTIONS, GRAPHS, AND MODELS; LINEAR FUNCTIONS Section 1.1: Functions and Models 1.
Relations and Functions ORDERED PAIRS AND CARTESIAN PRODUCT An ordered pair consists of two elements, say a and b, in which one of them, say a is designated.
Section 9.7 Functions. Function Definitions Def: A function is a rule that assigns one output to each allowable input. Def’s: The set of allowable inputs.
Table of Contents Matrices - Definition and Notation A matrix is a rectangular array of numbers. Consider the following matrix: Matrix B has 3 rows and.
Lesson 3-2 Functions and Function Notation Objective: To learn about functions, domains and ranges. To use function notation to represent functions.
Section 2.4. Section Summary  Sequences. o Examples: Geometric Progression, Arithmetic Progression  Recurrence Relations o Example: Fibonacci Sequence.
Section 9.3. Section Summary Representing Relations using Matrices Representing Relations using Digraphs.
Function Hubert Chan (Chapter 2.1, 2.2) [O1 Abstract Concepts]
Section 1.2 Functions and Graphs.
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Functions Section 5.1.
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Input/Output tables.
Function Hubert Chan (Chapter 2.1, 2.2) [O1 Abstract Concepts]
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Exponential and Logarithmic Functions
Chapter 7 Functions and Graphs.
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
SLOPE = = = The SLOPE of a line is There are four types of slopes
Functions Introduction.
Activity 2.8 Study Time.
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
9.1 Sequences Sequences are ordered lists generated by a
AP Calculus AB/BC 1.2 Functions, p. 12.
Non-numeric Data Representation
4 minutes Warm-Up Gina arrived at 9:13am for her 9:30am appointment. She waited for 37 minutes before the nurse called her name. The nurse took Gina’s.
Functions Section 2.3.
Section 2-2 Linear Equations Objective:
Warm-up 5/22/2019 Day 6.
AP Calculus AB/BC 1.2 Functions.
Materials Reminders.
CIS Dept. Temple Univ., Philadelphia
CIS Dept. Temple Univ., Philadelphia
Presentation transcript:

Week 2 (Chapter 2) 1.Signals are Functions 2.Systems

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 ) A signal is a function

Function definition Let f : Domain  Range such that  x  Domain, f ( x ) = expression

Voice: Time  Pressure Doman = Time =[0,1] Range = Pressure = Reals graph(Voice) = { red points}  Time X Pressure Time Air pressure Signal

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

Examples from Topic notes/Signals/Sound Voice: [0,1]  Pressure IntegerVoice: [0,1]  Integers16 ComputerVoice: DiscreteTime  Integers16 in which DiscreteTime ={0, 1/8000, 2/8000, …}

Examples 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, …,300}X{1,2,…,200}  Intensity = {0,1, …, 255} = Integers8 ColorDigitalImage: VerticalSpaceX HorizontalSpace = {1,2, …,300}X{1,2,…,200}  Intensity 3 = {0,1, …, 255} x {0, …, 255}x{0, …,255} = Integers8 3

Two 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 X YZ f(x) g(f(x))

2. 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}]

Images = [VerticalSpace x HorizontalSpace  Intensity 3 ] is the set of all color images. Suppose VerticalSpace = {1, …, 300}, HorizontalSpace = {1,…, 200}  1  i  300, 1  j  200 Varaiya(i, j) = (n R, n G, n B ), where (n R, n G, n B ) are the RGB values of the pixel (i, j) Consider a particular image Varaiya  Images

Since 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 Intensity 3

or as a 300 x 200 matrix whose (i, j) th element is Varaiya (i,j)  Intensity 3 Varaiya(1,1)Varaiya (1,200) Varaiya (i, j) Varaiya (300,1)Varaiya (300,200)

So Images, the space of all images, can be represented as the space of all 300 x 200 matrices, whose entries are elements of Intensity 3 Images = [{1, …, 300} x {1, …, 200}  Intensity 3 ]

A video movie is a signal (30 frames/sec) VideoVideo: DiscreteTime  Images DiscreteTime = {0, 1/30, 2/30, …} Domain (Video) = DiscreteTime, Range(Video) = Images Video (t)  Images [this is the t th frame] Video (t)(i, j)  Intensity 3 [this is the (i,j) th pixel of the t th frame]

An alternative signal is AltVideo: DiscreteTime x VerticalSpace x HorizontalSpace  Intensity 3, 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)

Space of signals

A 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] [0,5] Position The position of a vehicle is a signal in Positions = [[0, 5]  Reals]

Position&Speed of a vehicle is a signal in Position&Speeds = [[0,5]  Reals 2 ] [0,5] Position&Speed

[0,5] Position [0,5] Speed Alternatively, Position&Speed = (Position, Speed) with Position  Positions = [[0,5]  Reals] Speed  Speeds = [[0,5]  Reals]

Image processing system

Lane changingShock wave

Lane changing

Shock wave

Image processing system (IPS) IPS: [FreewayVideos]  [Time  Vehicle # x Lane x Position] or [Time x Vehicle #s  Lane x Position] IST input signal output signal

StereoSounds = [Time  Pressure 2 ] Alternatively, SteroSounds = LeftSounds x RightSounds where LeftSounds = RightSounds = [Time  Pressure] t LeftSound(t) t RightSound(t)

A 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}

In 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 + ]

Systems

A system S is a function : InputSignals  OutputSignals with InputSignals = [D  R], OutputSignals = [D’  R’] S x  InputSignals y = S(x)  OutputSignals

10Evans: [Ints +  {enter, leave}]  [Ints +  Ints + ] 10Evans u = (e,l,l,e,e,… ) y = (6,5,4,5,6,… ) initial number in room 5 InputSignals OutputSignals

The system 10Evans can be specified as follows: y = 10Evans (u), and for all n  Ints +, y(n) is given by where

How do you ‘give’ S? S u  Speeds y=S(u)  Positions Speeds = [[0,5]  Reals], Positions = [[0,5]  Reals] y(0) initial position

How do you ‘give’ Q? Q u  Accels v = Q(u)  Speeds Accels = [[0,5]  Reals], Speeds = [[0,5]  Reals] v(0) initial speed

u  Accelsv  Speedsy  Positions Q v(0) S y(0) SºQ: Accels  Positions : [[0,5]  Reals]  [[0,5]  Reals]

Other examples: TopicNotes/Systems/DTMFTopicNotes/Systems/DTMF KeypadSequences Sounds DTMF