Basic Examples (1)
Compute a discrete Hartley transform:
Scope (4)
x is a list of real values:
Compute the Hartley transform with machine arithmetic:
Compute using 24-digit precision arithmetic:
Compute a complex Hartley transform:
This is equivalent to separately taking the Hartley transforms of the real and imaginary parts:
Compute a 2D Hartley transform:
x is a rank 3 tensor with nonzero diagonal:
Compute the 3D Hartley transform:
Applications (2)
Use the discrete Hartley transform to compute the power spectrum of "white noise":
Show the logarithmic spectrum, including the first (DC) component:
Compute discrete cyclic convolutions to smooth a discontinuous function with a Gaussian:
Compute the cyclic convolution:
Show the original and smoothed function:
The convolution is consistent with ListConvolve:
Properties and Relations (4)
Compute the discrete Hartley transform from its definition:
DiscreteHartleyTransform is faster:
Compute the discrete Hartley transform of a vector by multiplying it with the Hartley matrix:
DiscreteHartleyTransform is faster:
The discrete Hartley transform is its own inverse:
A list of numbers:
Compute its discrete Hartley transform:
Use the discrete Hartley transform to compute the discrete Fourier transform:
Compare with the result of Fourier: