Professional Documents
Culture Documents
Hilberttransform PDF
Hilberttransform PDF
David Hilbert
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 1
1
Overview
• Definition
– Time Domain
– Frequency Domain
• Analytic Signals
– Simple Example
• Applications
• MatLab Usage
– Example: Muting Time
• Conclusion
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 2
2
Hilbert Transform
What is it?
• Time Domain:
λ/4 shift for all frequencies
• Frequency Domain:
-90° phase shift for all spectral components
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 3
The Hilbert Transform does not change domains. A Time Domain Function remains
in the Time Domain and a Frequency Domain Function remains in the Frequency
Domain. The effect is similar to an integration.
3
Hilbert Transform
∞
1 1
H [a (t )] = a~ (t ) =
π ∫
−∞
a (τ )
t −τ
dτ
1 1
= a(t ) ∗
π t
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 6
6
Even & Odd Functions
A causal time signal shown as a sum of an even signal and an odd signal
Even
Odd
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 7
7
Fourier Transform Relationships
a(t) F A(f) = R(f) + jX(f)
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 8
8
“Sign” Function
9
Frequency Domain
F [a~ (t )] ≡ A( f ) (− j ⋅ sgn f )
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 10
Using these tools, we can write the Hilbert Transform in the Frequency Domain as
shown.
10
Effect of Hilbert Transform
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 11
11
Hilbert Transform of a Sinusoid
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 12
12
Analytic Signal
∇
a( t ) ≡ a( t ) + j a~( t )
∇
= a( t ) ⋅ e jθ ( t )
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 13
Definition of an Analytic Signal and the Envelope Function. The spectrum of the
Analytic signal is is one-sided (positive only) and positive valued.
13
Analytic Signal - Descriptors
Magnitude
∇
a( t ) = a 2 ( t ) + a~ 2 ( t )
Instantaneous Phase
a~( t )
θ ( t ) = tan −1
a( t )
Instantaneous
Frequency
1 dθ ( t )
fi ( t ) =
2π dt
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 14
Additional signal descriptors available from the Hilbert Transform and Analytic
Signal.
14
Analytic Signal - Example
Real a( t ) = cos 2π f0 t
Imaginary a~( t ) = sin 2π f t 0
∇
Magnitude a( t ) = 1
Phase θ ( t ) = 2π f0 t
Instantaneous
Frequency f i ( t ) = f0
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 15
Example.
15
Analytic Signal
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 16
Sinusoidal Analytic Signal shown as a “Heyser Spiral”. The Nyquist Plot is the
projection along the time axis. The Real and Imaginary parts are the projections
along the real and imaginary axes, respectively.
16
Time-Frequency Relationships
Time Response h(t) Frequency Response H(f)
H F H
†
d
d df
Group Delay
dt
Instantaneous
Frequency
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 17
Time & Frequency relationships of the various descriptors for a causal two-port
system response function.
17
Envelope Extraction
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 18
18
Decay Time Estimation (τ ,T60)
Exponentially
Magnitude
Log Magnitude
of Decaying
Analytic
ScaleSignal
Sinusoid
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 19
19
Propagation Delay / Signal Arrival
Estimation
Real Time
Hilbert Signal of Signal
Transform
Magnitude of Analytic Signal - Peak indicates arrival time
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 20
20
Practical Example
Source
Microphone
d = τ ·c
τ = d/c
c = 344 m/s
d=1m
τ = 2.92 ms
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 21
21
Loudspeaker Measurement
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 22
Resulting response without windowing, shown as magnitude in both the Time and
Frequency Domains.
22
All-Pass / Minimum Phase System
Separation
j ( φ ( f )min +φ ( f )All Pass )
H ( f ) = A( f )min ⋅ A( f )All Pass ⋅ e
φ ( f ) min = H -1 [ ln A( f ) min ]
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 23
For a minimum Phase system, it can be shown that the phase is not independent of
the magnitude, but an be derived using the Hilbert Transform as shown. The All-
Pass function has poles and zeroes that are negative conjugates of one-another, so
the magnitude is unity. The phase of the All-Pass is a pure delay.
23
MatLab Usage
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 24
24
Conclusion
Use of the Hilbert Transform:
• Allows definition of the analytic signal from a
real-valued time signal:
– The Real Part is the original time signal
– The Imaginary Part is the Hilbert Transform
• This enables calculation of the envelope
(magnitude) of a time signal
• Applications:
– Envelope Extraction / Magnitude Estimation
– Decay Time Estimation: RT60, τ
– Propagation Delay & Signal Arrival Measurements
– All-Pass / Minimum Phase System Separation
© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: cjs@cjs-labs.com 25
Conclusion.
25