• No results found

ESE 531: Digital Signal Processing

N/A
N/A
Protected

Academic year: 2021

Share "ESE 531: Digital Signal Processing"

Copied!
51
0
0

Loading.... (view fulltext now)

Full text

(1)

ESE 531: Digital Signal Processing

Week 6

Lecture 11: February 21, 2021

Non-Integer and Multi-rate Sampling

(2)
(3)

Downsampling

!

Definition: Reducing the sampling rate by an

integer number

(4)

Example

4 Penn ESE 531 Spring 2021 - Khanna

i=0

i=1

(5)

Example

5 Penn ESE 531 Spring 2021 - Khanna

(6)

Example

(7)

Upsampling

!

Definition: Increasing the sampling rate by an

integer number

7 Penn ESE 531 Spring 2021 - Khanna

x[n] = x

c

(nT )

(8)

Frequency Domain Interpretation

(9)

Example

(10)

Interpolation and Decimation

10 Penn ESE 531 Spring 2021 - Khanna

(11)

Interpolation Filter Example 1

!

In this example, we interpolate a signal x(n) by a

factor of 4.

!

We use a linear phase Type I FIR lowpass filter of

length 21.

(12)

Interpolation Filter Example 1

(13)

Interpolation Filter Example 1

(14)

Interpolation Filter Example 1

14 Penn ESE 531 Spring 2021 - Khanna

*

(15)

Interpolation Filter Example 1

15 Penn ESE 531 Spring 2021 - Khanna

*

(16)

Interpolation Filter Example 2

!

This time we use a filter of length 7 with the effect

of linear interpolation

(17)

Interpolation Filter Example 2

(18)

Interpolation Filter Example 2

18 Penn ESE 531 Spring 2021 - Khanna

*

(19)

Interpolation Filter Example 2

19 Penn ESE 531 Spring 2021 - Khanna

*

(20)

Interpolation Filter Example 2

20 Penn ESE 531 Spring 2021 - Khanna

*

(21)

Interpolation Filter Example 3

!

When interpolating a signal x(n), the interpolation

filter h(n) will in general change the samples of x(n)

in addition to filling in the zeros.

!

Can a filter be designed so as to preserve the

original samples x(n)?

(22)

Interpolation Filter Example 3

!

When interpolating a signal x(n), the interpolation

filter h(n) will in general change the samples of x(n)

in addition to filling in the zeros.

!

Can a filter be designed so as to preserve the

original samples x(n)?

!

To be precise, if y(n) = h(n) ∗ [↑2] x(n) then can we

design h(n) so that y(2n) = x(n)?

(23)

Interpolation Filter Example 3

!

When interpolating a signal x(n), the interpolation

filter h(n) will in general change the samples of x(n)

in addition to filling in the zeros.

!

Can a filter be designed so as to preserve the

original samples x(n)?

!

To be precise, if y(n) = h(n) ∗ [↑2] x(n) then can we

design h(n) so that y(2n) = x(n)?

" Or more generally, so that y(2n + no) = x(n) ?

(24)

Interpolation Filter Example 3

! When interpolating by a factor of 2, if h(n) is a half-band

filter, then it will not change the samples x(n).

! A no-centered half-band filter h(n) is a filter that satisfies:

! That means, every second value of h(n) is zero, except for

one such value, as shown in the figure.

(25)

Interpolation Filter Example 3

! When interpolating by a factor of 2, if h(n) is a half-band

filter, then it will not change the samples x(n).

! A no-centered half-band filter h(n) is a filter that satisfies:

! That means, every second value of h(n) is zero, except for

one such value, as shown in the figure.

(26)

Interpolation Filter Example 3

! When interpolating by a factor of 2, if h(n) is a half-band

filter, then it will not change the samples x(n).

! A no-centered half-band filter h(n) is a filter that satisfies:

! That means, every second value of h(n) is zero, except for

one such value, as shown in the figure.

(27)

Interpolation Filter Example 4

! When interpolating a signal x(n) by a factor L, the original

samples of x(n) are preserved if h(n) is a Nyquist-L filter.

! A Nyquist-L filter simply generalizes the notion of the

halfband filter to L > 2.

(28)

Interpolation Filter Example 4

! When interpolating a signal x(n) by a factor L, the original

samples of x(n) are preserved if h(n) is a Nyquist-L filter.

! A Nyquist-L filter simply generalizes the notion of the

halfband filter to L > 2.

! A (0-centered) Nyquist-L filter h(n) is one for which

(29)

Interpolation Filter Example 4

! When interpolating a signal x(n) by a factor L, the original

samples of x(n) are preserved if h(n) is a Nyquist-L filter.

! A Nyquist-L filter simply generalizes the notion of the

halfband filter to L > 2.

! A (0-centered) Nyquist-L filter h(n) is one for which

(30)
(31)

Non-integer Resampling

!

T’=TM/L

(32)

Non-integer Resampling

!

T’=TM/L

" Upsample by L, then downsample by M

32 Penn ESE 531 Spring 2021 - Khanna

(33)

Non-integer Resampling

!

T’=TM/L

" Upsample by L, then downsample by M

33 Penn ESE 531 Spring 2021 - Khanna

(34)

Example

34 Penn ESE 531 Spring 2021 - Khanna

(35)

Example

35 Penn ESE 531 Spring 2021 - Khanna

(36)

Non-integer Sampling

!

T’=TM/L

" Downsample by M, then upsample by L?

36 Penn ESE 531 Spring 2021 - Khanna

(37)

Example

!

What if we want to resample by 1.01T?

(38)

Example

!

What if we want to resample by 1.01T?

" Upsample by L=100 " Filter π/101

" Downsample by M=101

(39)

Example

!

What if we want to resample by 1.01T?

" Upsample by L=100 " Filter π/101 ($$$$$)

" Downsample by M=101

!

Fortunately there are ways around it!

" Called multi-rate signal processing

" Uses compressors, expanders and filtering

(40)

Interchanging Operations

40 Penn ESE 531 Spring 2021 - Khanna

(41)

Interchanging Operations - Expander

41 Penn ESE 531 Spring 2021 - Khanna

Upsampling

-expanding in time

-compressing in frequency

(42)

Interchanging Operations - Expander

42 Penn ESE 531 Spring 2021 - Khanna

Upsampling

-expanding in time

-compressing in frequency

(43)

Interchanging Operations - Expander

43 Penn ESE 531 Spring 2021 - Khanna

Upsampling

-expanding in time

-compressing in frequency

(44)

Interchanging Operations - Compressor

44 Penn ESE 531 Spring 2021 - Khanna

Downsampling

(45)

45 Penn ESE 531 Spring 2021 - Khanna

Interchanging Operations - Compressor

(46)

46 Penn ESE 531 Spring 2021 - Khanna

=

Interchanging Operations - Compressor

(47)

47 Penn ESE 531 Spring 2021 - Khanna

Interchanging Operations - Compressor

=

~

(48)

Interchanging Operations - Summary

48 Penn ESE 531 Spring 2021 - Khanna

Filter and expander Expander and expanded filter*

Compressor and filter Expanded filter* and compressor

(49)

Multi-Rate Signal Processing

!

What if we want to resample by 1.01T?

" Expand by L=100 " Filter π/101 ($$$$$) " Compress by M=101

(50)

Big Ideas

!

Non-integer Resampling

!

Multi-Rate Processing

" Interchanging Operations

50

(51)

Admin

! HW 4 due Monday

References

Related documents

Menurut al-Baydawi pula, sesiapa sahaja daripada kalangan penganut agama-agama samawi tersebut yang beriman dan beramal sesuai dengan ketentuan ajaran agamanya

The trend of the zooplankton population was noticed in all the stations of the river Kali, especially station 6 was found to have highest diversity of zooplanktons as it is a

primească atenţia semenilor, pentru a-i ajuta să se elibereze de limitări şi de credinţa in neputinţa individului care mereu trebuia să rămână un nimeni intr-un colectiv (

Separate estimation sets the ability (theta) scale for the foundation tier as the base scale, and the common items are used to place item parameter estimates, examinee

Als Untersuchungsjahre werden die Jahre 2012 und 2013 und die hierbei während der gesamten Jahre erfassten „Besonderen Vorkommnisse“ gewählt. Mit den markanten

Purpose: This study was carried out to investigate the effects of two doses (150 and 300 mg/kg) of ethanolic extract of strawberry leaves on antioxidant capacity of liver, kidney

Dashed lines represent mean values for traditional statistical measures of fire frequency (CMFI and MPFI), mean interval at which larger fires (>20 % scarred) burned, and the