Filter

Published on April 2017 | Categories: Documents | Downloads: 41 | Comments: 0 | Views: 298
of 5
Download PDF   Embed   Report

Comments

Content


Linear Filters
§1. Convolutions and filters. A filter is a “black box” that takes an input signal,
processes it, and then returns an output signal that in some way modifies the input. For
example, if the input signal is noisy, then one would want a filter that removes noise, but
otherwise leaves the signal unchanged.
From a mathematical point of view, a signal is a function f : R →C that is piecewise
contiuous, and perhaps satisfies other properties, and a filter is a transformation L that
maps a signal f into another signal
˜
f. The space of signals is a vector space. L is a linear
filter if it is a linear transformation on the space of signals—i.e., it satisfies these two
properties:
(i) Additivity: L[f + g] = L[f] + L[g]
(ii) Homogeneity: L[cf] = cL[f], where c is a constant.
There is another property that we want our “black box” L to have. If we play an
old, scratchy record for half an hour starting at 3 pm today, and put the signal through
a noise reducing filter, we will hear the cleaned-up output, at roughly the same time as
we play the record. If we play the same record at 10 am tomorrow morning, and use the
same filter, we should hear the identical output, again at roughly the same time. This
property is called time invariance. It can be precisely formulated this way. Let f(t) be the
original signal, and let L[f(t)] =
˜
f(t) be the filtered output. L is said to be time-invariant
if L[f(t −a)] =
˜
f(t −a) for any a. In words, L is time invariant if the time-shifted input
signal f(t −a) is transformed by L into the time-shifted output signal
˜
f(t −a). Not every
linear transformation has this property. For example, it fails for the linear transformation
f →
_
t
0
f(τ)dτ.
A linear time-invariant transformation or filter L is closely related to a convolution
product. To see how the two are related, we will determine what function e
iωt
is mapped
to by L.
Proposition 1.1: Let L be a linear, time-invariant transformation on the space of
signals that are piecewise continuous functions, and let ω be a real number. Then,
L[e
iωt
] =


ˆ
h(ω)e
iωt
.
Proof: Let L[e
iωt
] = ˜ e
ω
(t). Because L is time-invariant, we have that
L[e
iω(t−a)
] = ˜ e
ω
(t −a).
Since e
iω(t−a)
= e
iωt
e
−iωa
and since L is linear, we also have that
L[e
iω(t−a)
] = L[e
iωt
e
−iωa
]
= e
−iωa
L[e
iωt
]
= e
−iωa
˜ e
ω
(t)
Comparing the two previous equations, we find that
˜ e
ω
(t −a) = e
−iωa
˜ e
ω
(t).
1
Now, a is arbitrary. We may set a = t in the previous equation. Solving for ˜ e(t) yields
˜ e
ω
(t) = ˜ e
ω
(0)e
iωt
.
Letting
ˆ
h(ω) = ˜ e
ω
(0)/

2π completes the proof.
The function
ˆ
h(ω), which should be thought of as the Fourier transform of a function
h, completely determines L. To see this, we first apply L to a signal f, but with f written
in a peculiar way,
f(t) = F
−1
[
ˆ
f] =
1


_

−∞
ˆ
f(ω)e
iωt
dω.
Using this form for f, we get the following chain of equations:
L[f] = L
_
1


_

−∞
ˆ
f(ω)e
iωt

_
=
1


_

−∞
ˆ
f(ω)L[e
iωt
]dω [linearity]
=
1


_

−∞
ˆ
f(ω)
_


ˆ
h(ω)
_
e
iωt
dω [Proposition1.1]
=

2πF
−1
[
ˆ
f(ω)
ˆ
h(ω)] [def’n of inverse FT]
= f ∗ h(t) [Convolution Theorem]
The argument presented above is only “formal,” because the interchange of L and the
integral in the second step has not been justified. Nevertheless, the result that we arrived
at is true with very few restrictions on either L or the space of signals being considered.
There are physical interpretations for both h(t) and
ˆ
h(ω). Assume that h(t) is con-
tinuous, that δ is a small positive number. We want to apply L to an impulse: a signal
f
δ
(t) that is any piecewise continuous function that is 0 outside of an interval [−δ, δ] and
satisfies
_

−∞
f
δ
(t)dt = 1. Applying L to f
δ
we get
L[f
δ
(t)] = f
δ
∗ h(t)
=
_

−∞
f
δ
(τ)h(t −τ)dτ
=
_
δ
−δ
f
δ
(τ)h(t −τ)dτ
≈ h(t)
_
δ
−δ
f
δ
(τ)dτ
. ¸¸ .
1
= h(t)
Thus h(t) is the approximate response to an impulse signal. For that reason h(t) is called
the response function. We have already seen that L[e
iωt
] =


ˆ
h(ω)e
iωt
. Thus
ˆ
h(ω) is the
amplitude to of the response to a “pure frequency” signal; it is called the system function.
2
§2. Causality and the design of filters. We want to design a device that will cut off a
signal’s frequencies if they are beyond a certain range. Usually, such filters are employed
in noise reduction, and are called low-pass filters.
A simple guess at how to do this is to first look at the effect of a filter in the “frequency
domain.” Since L[f] = f ∗ h, we have, by the Convolution Theorem,
¯
L[f](ω) =


ˆ
f(ω)
ˆ
h(ω).
To remove all frequencies beyond a certain range, and still leave the other frequency
components untouched, we need only choose
ˆ
h
ω
c
(ω) :=
_
1/

2π if |ω| ≤ ω
c
0 if |ω| > ω
c
,
where ω
c
is some cut-off frequency that is at our disposal. The response function corre-
sponding to the system function
ˆ
h
ω
c
is easy to calculate:
h
ω
c
(t) = F
−1
[
ˆ
h
ω
c
]
= (1/

2π)
_

−∞
ˆ
h
ω
c
(ω)e
iωt

=
1

_
ω
c
−ω
c
e
iωt

=
_
e
iωt
2itπ
_
ω=ω
c
ω=−ω
c
=
e

c
t
−e
−iω
c
t
2itπ
=
sin(ω
c
t)
πt
We want to see whether h
ω
c
is a reasonable response function, and so we will see what
happens when we filter a very simple input function,
f
t
c
(t) =:=
_
1 if 0 ≤ t ≤ t
c
0 if t < 0 or t > t
c
,
where t
c
is the switch-off time. The effect of the filter described above is
L
ω
c
[f
t
c
](t) =
_

−∞
f
t
c
(τ)h
ω
c
(t −τ)dτ
=
_
t
c
0
sin(ω
c
(t −τ))
π(t −τ)

=
1
π
_
ω
c
t
ω
c
(t−t
c
)
sin u
u
du
=
1
π
{Si(ω
c
t) −Si(ω
c
(t −t
c
))} ,
3
where Si(z) =
_
z
0
sin u
u
du.
We want to plot L
ω
c
[f
t
c
](t) =
1
π
{Si(ω
c
t) −Si(ω
c
(t −t
c
))}. We need to pick numerical
values for t
c
and ω
c
; let us choose both parameters to be 1. The result is shown below.
Figure 1: A plot of
1
π
{Si(t) −Si(t −1)}
Note that an appreciable portion of the graph occurs before t = 0. In physical terms,
this means that the output signal is occurring before the input signal has arrived! Since
this violates causality, the filter that we have constructed cannot be physically realized.
Causality must be taken into account when designing filters.
§3. Causal filters. A causal filter is one for which the output signal begins after the
input signal has started to arrive. The result below tells us which filters are causal.
Proposition 3.1: Let h be a piecewise continuous function for which the integral
_

−∞
|h(t)|dt is finite. Then, h is the impulse response function for a causal filter if and
only if h(t) = 0 for all t < 0.
Proof: We will prove that if h(t) = 0 for all t < 0, then the corresponding filter
is causal. We leave the converse as an exercise. Suppose that a signal starts arriving at
t = 0—that is, f(t) = 0 for all t < 0. The output of the filter is then
L[f](t) = f ∗ h(t) =
_

0
f(τ)h(t −τ)dτ,
4
where the lower limit in the integral above is 0 because f(τ) = 0 when τ < 0. Now, if
a negative value of t is inserted in the formula above, the argmuent of h is t − τ, which
satisfies t − τ ≤ t < 0, so h(t − τ) = 0 for all τ ≥ 0. The integral thus vanishes, and
f ∗ h(t) = 0 for all such t. The time-invariance of the filter takes care of the case when a
signal starts arriving at a time other than t = 0.
This proposition applies to the response function, but it also gives us important in-
formation about the system function,
ˆ
h(ω). Recall that the system function is the Fourier
transform of h. If the filter is causal, then this implies
ˆ
h(ω) =
1


_

−∞
h(t)e
−iωt
dt
=
1


_

0
h(t)e
−iωt
dt [causality]
= L[h(t)/

2π](iω) [L = Laplace transform]
In words, the system function is the Laplace transform of a multiple of the response
function, with the Laplace transform variable s = iω. The converse is also true.
Proposition 3.2: Suppose that G(s) = L[g](s) and that
_

0
|g(t)|dt is convergent.
Then, the function G(iω)/

2π is the system function for a causal filter L, and the function
h(t) :=
_
g(t) if t ≥ 0
0 if t < 0
is the response function for L.
Proof: If we start with the h defined in the proposition, and take its Fourier trans-
form, then we have
ˆ
h(ω) =
1


_

−∞
h(t)e
−iωt
dt
=
1


_

0
g(t)e
−iωt
dt
=
1


L[g(t)](iω)
= G(iω)/


One of the older causal, noise reducing filters is the Butterworth. It is consructed
using Proposition 3.2 with g(t) = Ae
−αt
, where α > 0 and A > 0 are parameters. Since
G(s) = L[Ae
−αt
](s) = A(α + s)
−1
, we have
Butterworth filter:
_
¸
_
¸
_
h(t) =
_
Ae
−αt
if t ≥ 0
0 if t < 0
ˆ
h(ω) = (A/

2π)(α + iω)
−1
Reference: A. Papoulis, The Fourier Integral and its Applications, McGraw-Hill, New
York, 1962.
5

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close