tuning pont

Upload: ulaganathan-ulaga

Post on 08-Apr-2018

231 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/7/2019 Tuning pont

    1/18

    EE 7345/5345, SMU Electrical Engineering Department, 2000 224

    EE 5345

    Biomedical Instrumentation

    Lecture 11: slides 224-241

    Carlos E. Davila, Electrical Engineering Dept.

    Southern Methodist University

    slides can be viewed at:http:// www.seas.smu.edu/~cd/ee5345.html

  • 8/7/2019 Tuning pont

    2/18

    EE 5345, SMU Electrical Engineering Department, 1996 225

    Turning Point Algorithm

    n Processes 3 points at a time: x0, x1, x2

    n At each iteration:

    n

    x0 is the reference pointn either x1, or x2 is retained

    n retained point becomes x0 for the next iteration

    n Retaining rules:

    n retain x1

    if there is a slope sign change in going

    from x0 - x1 - x2

    n otherwise retain x2

  • 8/7/2019 Tuning pont

    3/18

    EE 5345, SMU Electrical Engineering Department, 1996 226

    Turning Point Algorithm (cont.)

    retained

    discarded

    xx00

    xx11

    xx22 x

    x00 x

    x11 x

    x22

    compression ratio is 2:1

    original sample intervals are lost

  • 8/7/2019 Tuning pont

    4/18

    EE 5345, SMU Electrical Engineering Department, 1996 227

    ex)

    retained

    discarded

    first sample always retained

    n

    n

  • 8/7/2019 Tuning pont

    5/18

    EE 5345, SMU Electrical Engineering Department, 1996 228

    Fan Algorithm U1

    L1

    U2

    L2

    U3

    L3

    retaineddiscarded

    xx22xx00

    xx11

    xx33

  • 8/7/2019 Tuning pont

    6/18

    EE 5345, SMU Electrical Engineering Department, 1996 229

    Fan Algorithm (cont.)

    n Draw cone (U1, L1) from x0 about x1.

    n If x2 lies outside (U1, L1) , retain x1, otherwise draw second

    cone (U2, L2) about x2.

    n If x3 lies outside smallest cone containing x2 (U2, L1) ,

    retain x2, etc.

    n At each step always retain the last point to fall within the

    most restrictive cone.

    n determines the amount of compression.n Must also store number of sampling intervals between

    retained points.

  • 8/7/2019 Tuning pont

    7/18

    EE 5345, SMU Electrical Engineering Department, 1996 230

    Zero-order Interpolator (ZOI)

    n If a sequence of points, x0, x1, x2, , xNlie within of

    n Discard x0, x1, x2, , xN-1 and replace xNby xavg

    x

    x x

    avg =

    +max min2

    xmax = max(x0, x1, x2, , xN)xmin = min(x0, x1, x2, , xN)

  • 8/7/2019 Tuning pont

    8/18

    EE 5345, SMU Electrical Engineering Department, 1996 231

    ex)

  • 8/7/2019 Tuning pont

    9/18

    EE 5345, SMU Electrical Engineering Department, 1996 232

    Amplitude Zone Time Epoch Coding

    (AZTEC )

    n ECG is covered by slopes and plateaus.

    n Plateaus (horizontal regions) are produced with a ZOI.

    n Store plateau length (number of samples) and xavg

    .

    n Slope starts when number of points used to form a plateau

    is less than 3.

    n When a plateau of 3 or more samples can be formed, slope

    is saved.

    n Store slope length (number of samples) and amplitude of

    last sample in slope.

  • 8/7/2019 Tuning pont

    10/18

    EE 5345, SMU Electrical Engineering Department, 1996 233

    ex)

    plateau

    slope

    plateau

  • 8/7/2019 Tuning pont

    11/18

    EE 5345, SMU Electrical Engineering Department, 1996 234

    Differential Quantization

    n Previous methods discard some of the samples, a subset of

    the total samples are retained.

    n Differential quantization relies on the use of quantizers. All

    samples are retained, use a smaller number of bits to

    represent each sample.

    n Decreasing number of bits per sample increases

    quantization error.

    n Differential quantization transforms the input signal tomake it small, thereby reducing quantization error.

  • 8/7/2019 Tuning pont

    12/18

    EE 5345, SMU Electrical Engineering Department, 1996 235

    Quantizers

    Q[ ]

    x$x

    x takes on any value

    takes on only a finite number of values$x

  • 8/7/2019 Tuning pont

    13/18

    EE 5345, SMU Electrical Engineering Department, 1996 236

    Quantization Characteristic

    7

    2

    5

    2

    3

    2

    2

    2

    32

    5

    2

    7

    2

    2 3 4 2 3 4x

    $

    x

    mid-riser

  • 8/7/2019 Tuning pont

    14/18

    EE 5345, SMU Electrical Engineering Department, 1996 237

    Mid-Riser Encoder

    $x b2b1b0

    7/2 011

    5/2 010

    3/2 001/2 000

    -/2 100

    -3/2 101

    -5/2 110

    -7/2 111

    sign-magnitude

  • 8/7/2019 Tuning pont

    15/18

    EE 5345, SMU Electrical Engineering Department, 1996 238

    Mid-Tread

    7

    2

    52

    32

    3

    2

    5

    2

    7

    2

    x

    2

    3

    2

    3

    4

    $

    x

    1

    1

    2

    9

    2

  • 8/7/2019 Tuning pont

    16/18

    EE 5345, SMU Electrical Engineering Department, 1996 239

    Mid-Tread Encoder

    $x b2b1b0

    3 011

    2 010

    1 00100 000

    - 111

    -2 110

    -3 101

    -4 100

    twos complement

  • 8/7/2019 Tuning pont

    17/18

    EE 5345, SMU Electrical Engineering Department, 1996 240

    Analog to Digital Converter Model

    quantization error = e[n] = x n x n[ ] $[ ]

    Q[ ]encoder

    x n[ ] $[ ]x n b b b2 1 0quantizersample/hold

    x t( )

    T= sampling interval

    ( )x n x nT [ ]

    2 2

    e n[ ]

  • 8/7/2019 Tuning pont

    18/18

    EE 5345, SMU Electrical Engineering Department, 1996 241

    Quantizer Signal-to-Noise Ratio (SNR)

    [ ]

    [ ]

    SNRE x n

    E e n

    x

    e

    =

    2

    2

    2

    2

    [ ]

    [ ]

    SNR

    X

    N

    x

    =

    3 22

    2

    max

    2N= number of quantizer levels

    E[ ] : expectation

    operation