Hartley transform

From HandWiki
Revision as of 18:58, 6 February 2024 by MainAI (talk | contribs) (fix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: Integral transform closely related to the Fourier transform

In mathematics, the Hartley transform (HT) is an integral transform closely related to the Fourier transform (FT), but which transforms real-valued functions to real-valued functions. It was proposed as an alternative to the Fourier transform by Ralph V. L. Hartley in 1942,[1] and is one of many known Fourier-related transforms. Compared to the Fourier transform, the Hartley transform has the advantages of transforming real functions to real functions (as opposed to requiring complex numbers) and of being its own inverse.

The discrete version of the transform, the discrete Hartley transform (DHT), was introduced by Ronald N. Bracewell in 1983.[2]

The two-dimensional Hartley transform can be computed by an analog optical process similar to an optical Fourier transform (OFT), with the proposed advantage that only its amplitude and sign need to be determined rather than its complex phase.[3] However, optical Hartley transforms do not seem to have seen widespread use.

Definition

The Hartley transform of a function [math]\displaystyle{ f(t) }[/math] is defined by:

[math]\displaystyle{ H(\omega) = \left\{\mathcal{H}f\right\}(\omega) = \frac{1}{\sqrt{2\pi}}\int_{-\infty}^\infty f(t) \operatorname{cas}(\omega t) \, \mathrm{d}t\,, }[/math]

where [math]\displaystyle{ \omega }[/math] can in applications be an angular frequency and

[math]\displaystyle{ \operatorname{cas}(t) = \cos(t) + \sin(t) = \sqrt{2} \sin (t+\pi /4) = \sqrt{2} \cos (t-\pi /4)\,, }[/math]

is the cosine-and-sine (cas) or Hartley kernel. In engineering terms, this transform takes a signal (function) from the time-domain to the Hartley spectral domain (frequency domain).

Inverse transform

The Hartley transform has the convenient property of being its own inverse (an involution):

[math]\displaystyle{ f = \{\mathcal{H} \{\mathcal{H}f \}\}\,. }[/math]

Conventions

The above is in accord with Hartley's original definition, but (as with the Fourier transform) various minor details are matters of convention and can be changed without altering the essential properties:

  • Instead of using the same transform for forward and inverse, one can remove the [math]\displaystyle{ {1}/{\sqrt{2\pi}} }[/math] from the forward transform and use [math]\displaystyle{ {1}/{2\pi} }[/math] for the inverse—or, indeed, any pair of normalizations whose product is [math]\displaystyle{ {1}/{2\pi} }[/math]. (Such asymmetrical normalizations are sometimes found in both purely mathematical and engineering contexts.)
  • One can also use [math]\displaystyle{ 2\pi\nu t }[/math] instead of [math]\displaystyle{ \omega t }[/math] (i.e., frequency instead of angular frequency), in which case the [math]\displaystyle{ {1}/{\sqrt{2\pi}} }[/math] coefficient is omitted entirely.
  • One can use [math]\displaystyle{ \cos-\sin }[/math] instead of [math]\displaystyle{ \cos+\sin }[/math] as the kernel.

Relation to Fourier transform

This transform differs from the classic Fourier transform [math]\displaystyle{ F(\omega) = \mathcal{F} \{ f(t) \}(\omega) }[/math] in the choice of the kernel. In the Fourier transform, we have the exponential kernel, [math]\displaystyle{ \exp\left({-\mathrm{i}\omega t}\right) = \cos(\omega t) - \mathrm{i} \sin(\omega t) }[/math], where [math]\displaystyle{ \mathrm{i} }[/math] is the imaginary unit.

The two transforms are closely related, however, and the Fourier transform (assuming it uses the same [math]\displaystyle{ 1/\sqrt{2\pi} }[/math] normalization convention) can be computed from the Hartley transform via:

[math]\displaystyle{ F(\omega) = \frac{H(\omega) + H(-\omega)}{2} - \mathrm{i} \frac{H(\omega) - H(-\omega)}{2}\,. }[/math]

That is, the real and imaginary parts of the Fourier transform are simply given by the even and odd parts of the Hartley transform, respectively.

Conversely, for real-valued functions [math]\displaystyle{ f(t) }[/math], the Hartley transform is given from the Fourier transform's real and imaginary parts:

[math]\displaystyle{ \{ \mathcal{H} f \} = \Re \{ \mathcal{F}f \} - \Im \{ \mathcal{F}f \} = \Re \{ \mathcal{F}f \cdot (1+\mathrm{i}) \}\,, }[/math]

where [math]\displaystyle{ \Re }[/math] and [math]\displaystyle{ \Im }[/math] denote the real and imaginary parts.

Properties

The Hartley transform is a real linear operator, and is symmetric (and Hermitian). From the symmetric and self-inverse properties, it follows that the transform is a unitary operator (indeed, orthogonal).

Convolution using Hartley transforms is[4] [math]\displaystyle{ f(x) * g(x) = \frac{F(\omega) G(\omega) + F(-\omega) G(\omega) + F(\omega) G(-\omega) - F(-\omega) G(-\omega)}{2} }[/math] where [math]\displaystyle{ F(\omega) = \{\mathcal{H}f\}(\omega) }[/math] and [math]\displaystyle{ G(\omega) = \{\mathcal{H} g\}(\omega) }[/math]

Similar to the Fourier transform, the Hartley transform of an even/odd function is even/odd, respectively.

cas

The properties of the Hartley kernel, for which Hartley introduced the name cas for the function (from cosine and sine) in 1942,[1][5] follow directly from trigonometry, and its definition as a phase-shifted trigonometric function [math]\displaystyle{ \operatorname{cas}(t)=\sqrt{2} \sin (t+\pi /4)=\sin(t)+\cos(t) }[/math]. For example, it has an angle-addition identity of:

[math]\displaystyle{ 2 \operatorname{cas} (a+b) = \operatorname{cas}(a) \operatorname{cas}(b) + \operatorname{cas}(-a) \operatorname{cas}(b) + \operatorname{cas}(a) \operatorname{cas}(-b) - \operatorname{cas}(-a) \operatorname{cas}(-b)\,. }[/math]

Additionally:

[math]\displaystyle{ \operatorname{cas} (a+b) = {\cos (a) \operatorname{cas} (b)} + {\sin (a) \operatorname{cas} (-b)} = \cos (b) \operatorname{cas} (a) + \sin (b) \operatorname{cas}(-a)\,, }[/math]

and its derivative is given by:

[math]\displaystyle{ \operatorname{cas}'(a) = \frac{d}{da} \operatorname{cas} (a) = \cos (a) - \sin (a) = \operatorname{cas}(-a)\,. }[/math]

See also

References

  1. 1.0 1.1 "A More Symmetrical Fourier Analysis Applied to Transmission Problems". Proceedings of the IRE 30 (3): 144–150. March 1942. doi:10.1109/JRPROC.1942.234333. https://www.researchgate.net/publication/3468825. 
  2. "Discrete Hartley transform". Journal of the Optical Society of America 73 (12): 1832–1835. 1983. doi:10.1364/JOSA.73.001832. 
  3. "Optical Hartley transforms". Proceedings of the IEEE 82 (3): 391–399. 1994. doi:10.1109/5.272144. 
  4. Olejniczak (2010). "Hartley Transform". in Poularikas. Transforms and Applications Handbook (3rd ed.). CRC Press.  Equation (4.54)
  5. The Fourier Transform and Its Applications (3 ed.). McGraw-Hill. June 1999. ISBN 978-0-07303938-1.  (NB. Second edition also translated into Japanese and Polish.)

Further reading