Lecture1- Final Released

download Lecture1- Final Released

of 102

Transcript of Lecture1- Final Released

  • 8/10/2019 Lecture1- Final Released

    1/102

    Dr. Zulfiqar H [email protected]

    Lecture 1

    mailto:[email protected]:[email protected]
  • 8/10/2019 Lecture1- Final Released

    2/102

    Course Objective

    To establish the idea of using computing techniques toalter the properties of a signal for desired effects

    Understanding of fundamentals of discrete-time, linear,

    shift-invariant signals and systems in

    Representation: sampling and quantization;

    Processing: filtering and transform techniques;

    Processing System Design: filter & processing algorithm design.

    Efficient computational algorithms and their implementation.

    Understanding to real world scenario

  • 8/10/2019 Lecture1- Final Released

    3/102

    What is DSP?

    A-to-D conversion:bandwidth control, sampling and quantization

    Computational processing: implemented on computers or ASICs

    with finite-precision arithmetic

    Basic numerical processing: add, subtract, multiply (scaling,

    amplification, attenuation), mute,

    Algorithmic numerical processing:convolution or linear

    filtering, non-linear filtering (e.g., median filtering), difference

    equations, DFT, inverse filtering, MAX/MIN,

    D-to-A conversion: re-quantification* and filtering (or

    interpolation) for reconstruction

  • 8/10/2019 Lecture1- Final Released

    4/102

    Course Introduction: What is Signal Processing

  • 8/10/2019 Lecture1- Final Released

    5/102

    Digital Signal Processing: Historical Context

  • 8/10/2019 Lecture1- Final Released

    6/102

    Basic Interests & Issues in DSP

    Digital Filters: Filter design, noise analysis, structures

    Fourier Analysis: Spectrum estimation, FFT, cosine

    transform, short-time FT

    Signal Modeling and Analysis: Linear prediction, wavelets

    Hardware and Software: Minicomputers, array

    processors, DSP chips, workstations, PCs, MATLAB, RTOS

    Applications:Speech, radar, image, video, data, ...

  • 8/10/2019 Lecture1- Final Released

    7/102

  • 8/10/2019 Lecture1- Final Released

    8/102

    Common algorithms Linear filtering: FIR, IIR

    FFT, cosine transform, filterbanks

    Correlation Matrix calculations

    Common features

    Lots of multiply/accumulate operations Block processing is often appropriate

    Fixed-point arithmetic for economical solutions

    DSP Algorithms

  • 8/10/2019 Lecture1- Final Released

    9/102

    Digital Signal Processing: Advantages

  • 8/10/2019 Lecture1- Final Released

    10/102

    Digital Signal Processing: Some Disadvantages

  • 8/10/2019 Lecture1- Final Released

    11/102

  • 8/10/2019 Lecture1- Final Released

    12/102

    Examples of Signals: Speech Waveform

  • 8/10/2019 Lecture1- Final Released

    13/102

    Example of 1D Signal

  • 8/10/2019 Lecture1- Final Released

    14/102

    Digital Speech Signal

    Voice frequency range: 20Hz ~ 3.4 KHz Sampling rate: 8 KHz (8000 samples/sec)

    Quantization: 8 bits/sample

    Bit-rate: 8K samples/sec * 8 bits/sample = 64 Kbps (foruncompressed digital phone)

    In current Voice over IP (VOIP) technology, digital speech

    signals are usually compressed (compression ratio: 8~10)

  • 8/10/2019 Lecture1- Final Released

    15/102

  • 8/10/2019 Lecture1- Final Released

    16/102

    Examples of 1-D Signals: Electrocardiogram

  • 8/10/2019 Lecture1- Final Released

    17/102

    Examples of 2-D Signals: Image

  • 8/10/2019 Lecture1- Final Released

    18/102

    Digital Image Signal

    One mega-pixel image (1024x1024) Quantization: 24 bits/pixel for the RGB full-color space,

    and 12 bits/pixel for a reduced color space (YCbCr)

    Bit-rate: 1024x1024 samples/sec * 12 bits/pixel = 12

    Mbits = 1.5 Mbytes (for uncompressed digital phone)

    How many uncompressed images can be stored in a 2G

    SD flash-memory card?

  • 8/10/2019 Lecture1- Final Released

    19/102

    Examples of 3-D Signals: Video

  • 8/10/2019 Lecture1- Final Released

    20/102

    Textbook

    Discrete-Time Signal processing, A. V. Oppenheim, R. W.

    Schafer, and J. R. Buck, Pearson Prentice Hall, US, 1999.: Signal Processing First, J. H. McClellan, R. W. Schafer,and

    M. A. Yodar, Pearson Prentice Hall, US, 2003.

    Statistical Digital Signal Processing and Modeling byMonson H. Hayes

  • 8/10/2019 Lecture1- Final Released

    21/102

    Signals

    Something that carries information

    Speech, audio, image, video, biomedical signals, radar

    signals, seismic signals, etc.

    Systems

    Something that can manipulate, change, record, or

    transmit signals

    CD, VCD/DVD

    Signals and Systems

  • 8/10/2019 Lecture1- Final Released

    22/102

    Signals: Review of Basic Concepts

  • 8/10/2019 Lecture1- Final Released

    23/102

    Signal

  • 8/10/2019 Lecture1- Final Released

    24/102

    Signals Types Most of the signals we will talk about are functions of time.

    There are many ways to classify signals. This class is organized

    according to whether the signals are continuousin time, or

    discrete.

    A continuous-time signal has values for all points in time in

    some (possibly infinite) interval.

    A discrete time signal has values for only discrete points in

    time.

    Signals can also be a function of space (images) or of space

    and time (video), and may be continuous or discrete in each

    dimension

  • 8/10/2019 Lecture1- Final Released

    25/102

    Discrete-Time signal

    A sampled version of a continuous signal

    What should be the sampling frequency which is

    enough for perfectly reconstructing the original

    continuous signal?

    Nyquist rate (Shannon sampling theorem)

    Digital Signal

    Sampling + Quantization Quantization: use a number of finite bits (e.g., 8bits) to

    represent a sampled value

    Discrete-Time Signal vs Digital Signal

  • 8/10/2019 Lecture1- Final Released

    26/102

    Discrete Time Signals

    Fundamentally, a discrete-time signal is sequence of samples,

    written,

    []

    where is an integer over some (possibly infinite) interval.

    Often, at least conceptually, samples of a continuous time

    signal

    [] = ()

    where is an integer, and is the sampling period.

    Example

  • 8/10/2019 Lecture1- Final Released

    27/102

    Signal Characteristics and Models

    Operations on the time dependence of a signal

    Amplitude Scaling Time scaling

    Time reversal

    Time shift

    Combinations

    Even and Odd Symmetry

    Discrete Amplitude Signals

    Impulse Sequence

    Unit Step Sequence Unit Rectangle

    Unit Ramp

    Unit Triangle Signal

    Exponential Signals

    Sinusoidal Signals

    Complex Signals

  • 8/10/2019 Lecture1- Final Released

    28/102

    Amplitude Scaling (Continuous-Time)

    The scaled signal ax(t) is x(t) multiplied by the constant a

  • 8/10/2019 Lecture1- Final Released

    29/102

    Amplitude Scaling (Discrete Time)

    The scaled signal ax[n] is x[n] multiplied by the constant a

  • 8/10/2019 Lecture1- Final Released

    30/102

    Time Scaling (Continuous Time)

    A signal x(t) is scaled in time by multiplying the time variable

    by a positive constant b, to produce x(bt).

    A positive factor of b either expands (0 < b < 1) or compresses

    (b > 1) the signal in time.

  • 8/10/2019 Lecture1- Final Released

    31/102

    Time Scaling (Discrete Time)

    The discrete-time sequence []is compressed in time by

    multiplying the index n by an integer

    , to produce the time-

    scaled sequence [].

    This extracts every sample of [].

    Intermediate samples are lost.

    The sequence is shorter.

    Called downsampling, or decimation

  • 8/10/2019 Lecture1- Final Released

    32/102

    Time Scaling (Discrete Time)

    The discrete-time sequence [] is expanded in time by

    dividing the index n by an integer m, to produce the time-

    scaled sequence [ = ].

    This specifies every sample.

    The intermediate samples must be synthesized (set to zero, or

    interpolated).

    The sequence is longer.

    Called upsampling, or interpolation

  • 8/10/2019 Lecture1- Final Released

    33/102

    Time Reversal

    Continuous time: replace with , time reversed signal is

    ()

    Discrete time: replace n with , time reversed signal is [].

    Same as time scaling, but with b = -1.

  • 8/10/2019 Lecture1- Final Released

    34/102

    Time Shift: Continuous Time

    For a continuous-time signal (), and a time 1 > 0,

    Replacing t with gives a delayed signal

    Replacing t with + gives an advanced signal x( + )

    May seem counterintuitive. Think about where is zero

  • 8/10/2019 Lecture1- Final Released

    35/102

    Time Shift: Discrete Time

    For a discrete time signal [], and an integer 1 > 0

    [ ] is a delayed signal. [ ] is an advanced signal.

    The delay or advance is an integer number of sample times.

    Again, where is zero?

  • 8/10/2019 Lecture1- Final Released

    36/102

    Combination of Operations

    Time scaling, shifting, and reversal can all be combined.

    Operation can be performed in any order, but care is required. This will cause confusion.

    Example: (2( 1))

    Scale first, then shift

    Compress by 2, shift by 1

  • 8/10/2019 Lecture1- Final Released

    37/102

    Combination of Operations

    Example (2( 1)), continued

    Shift first, then scale Shift by 1, compress by 2

    Shift first, then scale

    Rewrite (2( 1)) = (2 2)

    Shift by 2, scale by 2

  • 8/10/2019 Lecture1- Final Released

    38/102

    Combination of Operations: HW

  • 8/10/2019 Lecture1- Final Released

    39/102

    Event and Odd Symmetry

    An even signal is symmetric about the origin

    An odd signal is antisymmetric about the origin

    d dd

  • 8/10/2019 Lecture1- Final Released

    40/102

    Even and Odd Symmetry

    Any signal can be decomposed into even and odd components

    and that

    d dd

  • 8/10/2019 Lecture1- Final Released

    41/102

    Even and Odd Symmetry

    Example

    Same type of decomposition applies for discrete-time signals.

    E d Odd S HW

  • 8/10/2019 Lecture1- Final Released

    42/102

    Even and Odd Symmetry: HW

    The decomposition into even and odd components depends on

    the location of the origin. Shifting the signal changes the

    decomposition.

    Plot the even and odd components of the previous example,

    after shifting ()by 1/2to the right.

    Di A li d Si l

  • 8/10/2019 Lecture1- Final Released

    43/102

    Discrete Amplitude Signals

    Discrete amplitude signals take on only a countable set of

    values.

    Example: Quantized signal (binary, fixed point, floating point).

    A digital signal is a quantized discrete-time signal.

    Requires treatment as random process, not part of this

    course.

  • 8/10/2019 Lecture1- Final Released

    44/102

    Impulse Sequence (Discrete-time)

  • 8/10/2019 Lecture1- Final Released

    45/102

    Expressing Sequence as Sum of Unit ImulseSequences

  • 8/10/2019 Lecture1- Final Released

    46/102

  • 8/10/2019 Lecture1- Final Released

    47/102

    The unit step function u(t) is defined as

    Alternate definitions of value exactly at zero, such as 1/2.. Also known as the Heaviside step function.

    Unit Step Sequence (Continuous Time)

  • 8/10/2019 Lecture1- Final Released

    48/102

    f h ( )

  • 8/10/2019 Lecture1- Final Released

    49/102

    Extracting part of another signal. For example, the piecewise-

    defined signal

    Can be written as

    Uses for the Unit Step (Continuous Time)

    ( )

  • 8/10/2019 Lecture1- Final Released

    50/102

    Unit Step Sequence (Discrete-Time)

    i l

  • 8/10/2019 Lecture1- Final Released

    51/102

    Unit Rectangle

    U i R

  • 8/10/2019 Lecture1- Final Released

    52/102

    Unit Ramp

  • 8/10/2019 Lecture1- Final Released

    53/102

    Exponential Signals

  • 8/10/2019 Lecture1- Final Released

    54/102

    Exponential Signals

    An exponential signal is given by

    If < 0, this is exponential decay. If > 0 this is exponential growth.

    Damped Exponential Signals

  • 8/10/2019 Lecture1- Final Released

    55/102

    Damped Exponential Signals

    Exponential growth ( > 0)or decay( < 0), modulated bya sinusoid.

    Di t E ti l S

  • 8/10/2019 Lecture1- Final Released

    56/102

    Discrete Exponential Sequence

    Sinusoidal Signals

  • 8/10/2019 Lecture1- Final Released

    57/102

    Sinusoidal Signals

    A sinusoidal signal is of the form

    where f is the frequency in Hertz.

    We will often refer to as the frequency, but it must be kept in

    mind that it is really the , and the

    frequency is actually .

    where the radian frequency is , which has the units of

    radians/s.

    Also very commonly written as

    Sinusoidal Signals

  • 8/10/2019 Lecture1- Final Released

    58/102

    Sinusoidal Signals

    The period of the sinusoid is

    With the units of seconds.

    The phase or phase angle of the signal is , given in radians.

  • 8/10/2019 Lecture1- Final Released

    59/102

    C l E ti l S

  • 8/10/2019 Lecture1- Final Released

    60/102

    Complex Exponential Sequence

  • 8/10/2019 Lecture1- Final Released

    61/102

    Discrete Time Periodicity

  • 8/10/2019 Lecture1- Final Released

    62/102

    Discrete Time Periodicity

    More Complex Signals

  • 8/10/2019 Lecture1- Final Released

    63/102

    More Complex Signals

    Many more interesting signals can be made up by

    combining these elements.

    Example: Pulsed Doppler RF Waveform

  • 8/10/2019 Lecture1- Final Released

    64/102

    More Complex Signals

  • 8/10/2019 Lecture1- Final Released

    65/102

    More Complex Signals

  • 8/10/2019 Lecture1- Final Released

    66/102

    System: Review of Basic Concepts

    Systems: Intuitive Description

  • 8/10/2019 Lecture1- Final Released

    67/102

    Systems: Intuitive Description

    Systems: Definition

  • 8/10/2019 Lecture1- Final Released

    68/102

    Systems: Definition

    Systems: Block Diagram

  • 8/10/2019 Lecture1- Final Released

    69/102

    Systems: Block Diagram

    System: Examples

  • 8/10/2019 Lecture1- Final Released

    70/102

    System: Examples

    System Examples

  • 8/10/2019 Lecture1- Final Released

    71/102

    System Examples

    System Examples

  • 8/10/2019 Lecture1- Final Released

    72/102

    System Examples

    System Examples: Multiple Inputs

  • 8/10/2019 Lecture1- Final Released

    73/102

    System Examples: Multiple Inputs

    System Interconnection

  • 8/10/2019 Lecture1- Final Released

    74/102

    System Interconnection

    System Interconnection

  • 8/10/2019 Lecture1- Final Released

    75/102

    System Interconnection

  • 8/10/2019 Lecture1- Final Released

    76/102

    System: Linearity

  • 8/10/2019 Lecture1- Final Released

    77/102

    System: Linearity

  • 8/10/2019 Lecture1- Final Released

    78/102

    System: Linearity

  • 8/10/2019 Lecture1- Final Released

    79/102

    System: Linearity

    System Memory

  • 8/10/2019 Lecture1- Final Released

    80/102

    System Memory

    System: Time Invariance

  • 8/10/2019 Lecture1- Final Released

    81/102

    System: Time Invariance

    System: Time Invariance

  • 8/10/2019 Lecture1- Final Released

    82/102

    System: Time Invariance

    System: Stability

  • 8/10/2019 Lecture1- Final Released

    83/102

    System: Stability

    System Stability

  • 8/10/2019 Lecture1- Final Released

    84/102

    System Stability

    System Inevitibility

  • 8/10/2019 Lecture1- Final Released

    85/102

    System Inevitibility

    System Invertibility

  • 8/10/2019 Lecture1- Final Released

    86/102

    System Invertibility

    System Invertibility

  • 8/10/2019 Lecture1- Final Released

    87/102

    System Invertibility

  • 8/10/2019 Lecture1- Final Released

    88/102

    System: Described by Differential Equation

  • 8/10/2019 Lecture1- Final Released

    89/102

    y y q

    System: Examples

  • 8/10/2019 Lecture1- Final Released

    90/102

    y p

    System Examples: 2ndorder Circut

  • 8/10/2019 Lecture1- Final Released

    91/102

    y p

    System Examples: Mechanical Systems

  • 8/10/2019 Lecture1- Final Released

    92/102

    y p y

    System Examples: Mechanical Systems

  • 8/10/2019 Lecture1- Final Released

    93/102

    y p y

    System Types

  • 8/10/2019 Lecture1- Final Released

    94/102

    y ypSystems are classified according to the types of input and output signals

    Continuous-time system has continuous-time inputs and outputs.

    AM or FM radio

    Conventional (all mechanical) car

    Discrete-time system has discrete-time inputs and outputs.

    PC computer game

    Matlab

    Hybrid systems are also very important (A/D, D/A converters).

    You playing a game on a PC

    Modern cars with ECU (electronic control units)

    Most commercial and military aircraft

    Discrete Type Systems

  • 8/10/2019 Lecture1- Final Released

    95/102

    yp y

    Discrete Time Systems

  • 8/10/2019 Lecture1- Final Released

    96/102

    y

    The system T computes the outputs as a function of the

    inputs. In general, the output at time n may depend on

    several sa0mples of the input sequence x.

    We typically denote the input of a discrete-time system

    as x[n] and the output as y[n].

    Example: Moving average

    Causal Discrete-Time Systems

  • 8/10/2019 Lecture1- Final Released

    97/102

    y

    Stable Discrete-Time Systems

  • 8/10/2019 Lecture1- Final Released

    98/102

    y

    Input-Output Description: Capabilities & Limitations

  • 8/10/2019 Lecture1- Final Released

    99/102

  • 8/10/2019 Lecture1- Final Released

    100/102

  • 8/10/2019 Lecture1- Final Released

    101/102

    Discrete-Time Convolution

  • 8/10/2019 Lecture1- Final Released

    102/102