15682 Aliasing

Embed Size (px)

Citation preview

  • 8/3/2019 15682 Aliasing

    1/18

    SAMPLING & ALIASING

  • 8/3/2019 15682 Aliasing

    2/18

    OVERVI

    EW

    Periodic sampling, the process of

    representing a continuous signal with a

    sequence of discrete data values, pervades

    the field of digital signal processing.

    In practice, sampling is performed by

    applying a continuous signal to an analog-to-digital (A/D) converter whose output is a

    series of digital values.

  • 8/3/2019 15682 Aliasing

    3/18

    OVERVI

    EW(cont.)

    With regard to sampling, the primary

    concern is how fast must the given

    continuous signal be sampled in order to

    preserve its information content.

  • 8/3/2019 15682 Aliasing

    4/18

    ALIASING There is a frequency-domain ambiguity

    associated with the discrete-time signal

    samples that is absent in the continuoussignal world.

    eg. Suppose you are given the

    following sequence of values,x(0) = 0

    x(1) = 0.866

    x(2) = 0.866

    x(3)= 0

    x(4) = -0.866

    x(5) = -0.866

    x(6) = 0

  • 8/3/2019 15682 Aliasing

    5/18

    and were told that they represented instantaneous

    values of a sinewave. Next you were told to

    draw that sinewave. You would be able to draw a

    sinewave that passes through the points

    representing the original sequence.

    yn

    n

    0 2 4 61

    0

    1

  • 8/3/2019 15682 Aliasing

    6/18

    x1i

    0

    x2i

    ti

    However, someone else might draw another

    sine wave with a different frequency through

    the same points.

  • 8/3/2019 15682 Aliasing

    7/18

    As an example, consider two sine waves that

    differ only in frequency.O

    ne has a frequency of500 Hz, and the frequency of the subsequent sine

    wave is 8500 Hz.

    x1i

    0

    x2i

    ti

  • 8/3/2019 15682 Aliasing

    8/18

    Consider the continuous time domain sinusoidal

    signal

    This a garden variety sinewave with a frequency

    fo Hz. If we sample at a rate offs samples per

    second, where Ts = 1/fs. If we start sampling at

    t = 0, we will obtain samples at 0 ts, 1 ts, 2 ts,

    and so on.

    x t fto( ) sin( )! 2T

  • 8/3/2019 15682 Aliasing

    9/18

    The final equation defines the value of the nth

    sample of ourx(n) sequence to be equal to the

    original sine wave at the time instant nTs.

    !

    !

    !

    !

    0

    0

    0

    0

    2sin)(

    22sin)2(

    2sin)(

    02sin)0(

    T

    nTnTx

    T

    TTx

    T

    TTx

    Tx

    ss

    ss

    ss

    T

    T

    T

    T

    /

  • 8/3/2019 15682 Aliasing

    10/18

    Because two values of a sine wave are

    identical if theyre separated by an integermultiple of 2T radians, i.e.,

    where m is any integer. Now

    )2sin()sin( mTJJ !

    )22sin()2sin()( mntfntfnx soso TTT !!

    -

    ! s

    s

    o ntnt

    mfnx T2sin)(

  • 8/3/2019 15682 Aliasing

    11/18

    If we let mbe an integer multiple ofn, m=kn,

    we can replace the m/n ratio with kso that

    The fo and (fo + kfs) factors are equal. It means

    that anx(n) sequence of digital sample values,

    representing a sine wave offo Hz, also exactlyrepresents sine waves at other frequencies,

    namely fo + kfs . This is one of the most

    important relationships in the field of DSP.

    -

    ! s

    s

    o ntt

    kfnx T2sin)(

  • 8/3/2019 15682 Aliasing

    12/18

    When sampling at a rate offs samples/sec., ifkis any positive or negative integer, we cannot

    distinguish between the sampled values of a

    sine wave offo Hz and a sine wave of(fo + kfs)

    Hz.

  • 8/3/2019 15682 Aliasing

    13/18

    In many textbooks you will find sampling described as a

    multiplication of the input analog waveform with a

    periodic delta, Dirac, or impulse function.

    In an idealized system our sampling waveform would

    consist of a train of impulse functions spaced evenly by

    a period Ts.We can describe our idealized sampling function,z(t), as

    the sum of all the individual impulse functions:

    g g!

    tTtTttTtTtttz

    ss

    ss

    HHHHHHH

    -

    -

    22)(

    g!

    g!

    !n

    n

    snTttz H)(

  • 8/3/2019 15682 Aliasing

    14/18

    If we multiply these by our analog input signal,f(t), we

    obtain a train of pulses whose amplitudes are equal to the

    amplitude off(t) at that moment in time.

    Mathematically, the output sampled waveform,y(t), is

    just the multiplication ofz(t) with the input analog signal

    f(t):

    g!

    g!

    !n

    n

    snTttfty H)()(

  • 8/3/2019 15682 Aliasing

    15/18

  • 8/3/2019 15682 Aliasing

    16/18

  • 8/3/2019 15682 Aliasing

    17/18

  • 8/3/2019 15682 Aliasing

    18/18

    Oversampling

    If the original waveform does not vary much

    over the duration ofp(t), then we will also

    obtain a good construction. Oversampling, i.e.,

    using a sampling rate that is much greater than

    the Nyquist rate, can ensure this.