Hilbert transform

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 130.132.20.186 (talk) at 20:34, 16 November 2006 (→‎Frequency response). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The Hilbert transform, in red, of a square wave, in blue

In mathematics and in signal processing, the Hilbert transform, here denoted , of a real-valued function, , is obtained by convolving signal with to obtain . Therefore, the Hilbert transform can be interpreted as the output of a linear time invariant system with input , and a system impulse response given as . It is a useful mathematical tool to describe the complex envelope of a real-valued carrier modulated signal in communication theory (see below for more on applications).

The Hilbert transform is named after the renowned mathematician David Hilbert.

Definition

The definition of the Hilbert tranform is as follows:

where

and considering the integral as a Cauchy principal value (which avoids the singularities at and ).

It can be shown that if , then is defined and in for .

Frequency response

The Hilbert transform has a frequency response given by the Fourier transform:

,  

where

  • denotes the Fourier transform,
  • i (sometimes denoted by j ) is the imaginary unit,
  • is the angular frequency, and
  • and is often called the signum function.

And since:

,

the Hilbert transform has the effect of shifting the negative frequency components of by +90° and the positive frequencies components by −90°.

Inverse Hilbert transform

We also note that . So multiplying the above equation by gives

from which the inverse Hilbert transform is apparent:

Hilbert transform examples

Notice: Some authors, e.g., Bracewell, use our as their definition of the forward transform. A consequence is that the right column of this table would be negated.

Signal
Hilbert transform
Sinc function
Rectangular function
Dirac delta function

Narrowband model

Many signals can be accurately modeled as the product of a bandlimited "message" waveform, , and a sinusoidal "carrier":

When has no frequency content above the carrier frequency, Hz, then:

So, the Hilbert transform may be as simple as a circuit that produces a 90° phase shift at the carrier frequency. Furthermore:

from which one can reconstruct the carrier waveform. Then the message can be extracted from   by coherent demodulation.

Analytic representation

The analytic representation of a signal is defined in terms of the Hilbert transform:

E.g., for the narrowband model [above], the analytic representation is:

  (by Euler's formula)

This complex heterodyne operation shifts all the frequency components of above 0 Hz. In that case, the imaginary part of the result is a Hilbert transform of the real part. So that is an indirect way to produce Hilbert transforms.

While the analytic representation of a signal is not necessarily an analytic function, there is a connection to analytic functions here, which is in fact how the Hilbert transform arose historically. The idea is as follows. Starting with a function

one may extend this to a harmonic function on , the upper half plane, by convolving with the Poisson kernel. Every harmonic function is the real part of some analytic function. We then consider the imaginary part of this analytic function, specifically its values along the boundary. It turns out that the boundary values are . It then follows that the analytic function may be described as the Poisson integral of .

Practical considerations

The function h with h(t) = 1/(π t) is a non-causal filter and therefore cannot be implemented as is, if is a time-dependent signal. If is a function of a non-temporal variable, e.g., spatial, the non-causality might not be a problem. The filter is also of infinite support which may be a problem in certain applications. Another issue relates to what happens with the zero frequency (DC), which can be avoided by assuring that does not contain a DC-component.

A practical implementation in many cases implies that a finite support filter, which in addition is made causal by means of a suitable delay, is used to approximate the computation. The approximation may also imply that only a specific frequency range is subject to the characteristic phase shift related to the Hilbert transform. See also quadrature filter.

Discrete Hilbert transform

If the signal is bandlimited, then is bandlimited in the same way. Consequently, both these signals can be sampled according to the sampling theorem, resulting in the discrete signals and . The relation between the two discrete signals is then given by the convolution:

where

which is non-causal and has infinite duration. In practice, a shortened and time-shifted approximation is used. The usual filter design tradeoffs apply (e.g. filter-order and latency vs. frequency-response). Also notice, that is not just a sampled version of the Hilbert filter , defined above. Rather it is a sequence with this discrete-time Fourier transform:

We note that a sequence similar to can be generated by sampling and computing the inverse discrete Fourier transform. The larger the transform (i.e. more samples per radians), the better the agreement (for a given value of the abscissa, n). The figure shows the comparison for a 512-point transform. (Due to odd-symmetry, only half the sequence is actually plotted.)
But that is not the actual point, because it is easier and more accurate to generate directly from the formula. The point is that many applications choose to avoid the convolution by doing the equivalent frequency-domain operation:  simple multiplication of the signal transform with , made even easier by the fact that the real and imaginary components are 0 and ±1 respectively. The attractiveness of that approach is only apparent when the actual Fourier transforms are replaced by samples of the same, i.e., the DFT, which is an approximation and introduces some distortion. Thus, after transforming back to the time-domain, those applications have indirectly generated (and convolved with) not , but the DFT approximation to it, which is shown in the figure.

Notes on fast convolution:

  • Implied in the technique described above is the concept of dividing a long signal into segments of arbitrary size. The signal is filtered piecewise, and the outputs are subsequently pieced back together.
  • The segment size is an important factor in controlling the amount of distortion. As the size increases, the DFT becomes more dense and is a better approximation to the underlying Fourier transform. In the time-domain, the same distortion is manifested as "aliasing", which results in a type of convolution called circular. It is as if the same segment is repeated periodically and filtered, resulting in distortion that is worst at either or both edges of the original segment. Increasing the segment size reduces the number of edges in the pieced-together result and therefore reduces overall distortion.
  • Another mitigation strategy is to simply discard the most badly distorted output samples, because data loss can be avoided by overlapping the input segments. When the filter's impulse response is less than the segment length, this can produce a distortion-free (non-circular) convolution. That of course requires an FIR filter, which the Hilbert transform is not. So yet another technique is to design an FIR approximation to a Hilbert transform filter. That moves the source of distortion from the convolution to the filter, where it can be readily characterized in terms of imperfections in the frequency response.
  • Failure to appreciate or correctly apply these concepts is probably one of the most common mistakes made by non-experts in the digital signal processing field.

See also

References

  • Bracewell, R. (1986). The Fourier Transform and Its Applications (2nd ed ed.). McGraw-Hill. {{cite book}}: |edition= has extra text (help)
  • Carlson, Crilly, and Rutledge (2002). Communication Systems (4th ed ed.). {{cite book}}: |edition= has extra text (help)CS1 maint: multiple names: authors list (link)

External links