# 哈特利变换

哈特利变换是一种积分变换，与傅里叶变换密切相关，它用核 cas(x) = cos(x) + sin(x) 而非复指数来表示函数，因此实信号的变换结果本身也是实的，且正变换与逆变换完全相同。贝尔电话实验室的研究员拉尔夫·V·L·哈特利（Ralph V. L. Hartley）于1942年在其论文《一种应用于传输问题的更对称的傅里叶分析》（*A More Symmetrical Fourier Analysis Applied to Transmission Problems*）中提出了这一变换<sup>[1](https://gwern.net/doc/math/1942-hartley.pdf)</sup><sup> • </sup><sup>[2](https://ietresearch.onlinelibrary.wiley.com/doi/full/10.1049/joe.2014.0350)</sup>。

| 关键事实 | 详情 |
|---|---|
| 核 | cas(ωt) = cos(ωt) + sin(ωt)，由哈特利于1942年引入；傅里叶核则是复指数 e<sup>−jωt</sup><sup> • </sup><sup>[2](https://ietresearch.onlinelibrary.wiley.com/doi/full/10.1049/joe.2014.0350)</sup> |
| 自逆性 | 哈特利逆变换与正变换完全相同；对于离散形式，逆变换是同一个求和式乘以 1/N<sup>[2](https://ietresearch.onlinelibrary.wiley.com/doi/full/10.1049/joe.2014.0350)</sup><sup> • </sup><sup>[3](https://technav.ieee.org/topic/discrete-hartley-transforms/)</sup> |
| 实值性 | 实信号的变换结果是频率的实函数，因此在任何阶段都无需复数运算<sup>[2](https://ietresearch.onlinelibrary.wiley.com/doi/full/10.1049/joe.2014.0350)</sup><sup> • </sup><sup>[3](https://technav.ieee.org/topic/discrete-hartley-transforms/)</sup> |
| 离散形式 | 罗纳德·N·布雷斯韦尔（Ronald N. Bracewell）于1983年提出了离散哈特利变换（DHT）以及一种快速哈特利变换（FHT）算法<sup>[3](https://technav.ieee.org/topic/discrete-hartley-transforms/)</sup><sup> • </sup><sup>[4](https://www.nrao.edu/archives/bracewell-finding-aid)</sup> |
| 速度史 | 在处理实数据时，FHT 的运算速度约为20世纪80年代初的 FFT 的两倍；后来 FFT 的改进使 FFT 占据了速度优势<sup>[4](https://www.nrao.edu/archives/bracewell-finding-aid)</sup> |
| 现代地位 | FFTW 文档指出，DHT 并不比 DFT 快，并称这一误解早在1987年就已被澄清；FFTW 通过后处理一个实到半复（real-to-halfcomplex）变换来计算 DHT<sup>[5](https://www.fftw.org/fftw3_doc/The-Discrete-Hartley-Transform.html)</sup> |
| 应用 | 实数据的频谱分析、快速卷积、相位谱处理、地球物理学、模式识别以及实时海面模拟<sup>[2](https://ietresearch.onlinelibrary.wiley.com/doi/full/10.1049/joe.2014.0350)</sup><sup> • </sup><sup>[3](https://technav.ieee.org/topic/discrete-hartley-transforms/)</sup><sup> • </sup><sup>[6](https://accedacris.ulpgc.es/handle/10553/41355?locale=es)</sup> |

## 定义与核

哈特利变换是一种以余弦函数为基函数的正交变换。傅里叶变换将每个输入乘以 cos − i·sin，即一个复指数；而哈特利变换则将每个输入乘以简单的 cos + sin，即哈特利于1942年定义的 cas 函数<sup>[1](https://gwern.net/doc/math/1942-hartley.pdf)</sup><sup> • </sup><sup>[2](https://ietresearch.onlinelibrary.wiley.com/doi/full/10.1049/joe.2014.0350)</sup>。对于连续函数 s(t)，该变换使用以弧度/秒为单位的角频率 ω，或等价地使用以 1/s 为单位的线性频率 f，只是系数略有不同<sup>[2](https://ietresearch.onlinelibrary.wiley.com/doi/full/10.1049/joe.2014.0350)</sup>。

有两个性质使该变换有别于其傅里叶对应物。第一，哈特利逆变换与正变换完全相同，因此一个公式即可同时用于两个方向。第二，实信号的哈特利变换是频率的实函数，而同一信号的傅里叶变换则是复函数<sup>[2](https://ietresearch.onlinelibrary.wiley.com/doi/full/10.1049/joe.2014.0350)</sup>。其缩放与线性性质与傅里叶变换完全相同<sup>[2](https://ietresearch.onlinelibrary.wiley.com/doi/full/10.1049/joe.2014.0350)</sup>。

## 与傅里叶变换的关系

对于实信号，哈特利变换所携带的信息与傅里叶变换完全相同。利用欧拉公式，哈特利变换等于傅里叶变换的实部减去虚部；反之，傅里叶变换的实部与虚部分别是哈特利变换的偶分量与负的奇分量<sup>[2](https://ietresearch.onlinelibrary.wiley.com/doi/full/10.1049/joe.2014.0350)</sup>。

对于长度为 N 的实序列的离散哈特利变换，正变换是对 x(n) cas(2πnk/N) 按 n 求和，逆变换则是同一表达式乘以 1/N<sup>[3](https://technav.ieee.org/topic/discrete-hartley-transforms/)</sup>。对于实输入序列，DHT 的偶分量等于 DFT 的实部，而其奇分量等于 DFT 的虚部取反；因此，一次哈特利计算即可同时得到傅里叶幅度谱与相位谱，而功率谱可直接由 X(k)² 加 X(N−k)² 成比例地得到。<sup>[3](https://technav.ieee.org/topic/discrete-hartley-transforms/)</sup>

卷积定理在此呈现为一种修正形式。对于循环卷积，DHT 并不简化为两个变换的简单乘积；相反，它会混合偶分量与奇分量，不过若其中一个序列为偶对称，则该混合式可简化回普通乘积<sup>[3](https://technav.ieee.org/topic/discrete-hartley-transforms/)</sup>。

## 历史

哈特利1942年的论文将傅里叶积分恒等式重新表述为一种更对称的形式，其中原函数与其变换的变量对称地进入方程，并将其应用于稳态与瞬态传输问题<sup>[1](https://gwern.net/doc/math/1942-hartley.pdf)</sup>。其对称性与实值输出在当时被认为对通信理论颇为有用，但此后该变换鲜有人问津，直到斯坦福大学电气工程教授罗纳德·N·布雷斯韦尔发表了关于离散哈特利变换的论述，紧接着又发表了关于快速哈特利变换的论述<sup>[2](https://ietresearch.onlinelibrary.wiley.com/doi/full/10.1049/joe.2014.0350)</sup>。

自1983年起，布雷斯韦尔发表了16篇论文和一部著作，论述该变换的数学发展，推导出傅里叶变换理论中已知定理的哈特利版本，以及一种在许多情况下可替代 FFT 的快速哈特利变换算法<sup>[4](https://www.nrao.edu/archives/bracewell-finding-aid)</sup>。由于 FHT 在变换实数据时避免了复数，其运算速度约为当时所用 FFT 版本的两倍；后来 FFT 的改进使 FFT 在速度上占据了优势<sup>[4](https://www.nrao.edu/archives/bracewell-finding-aid)</sup>。

## 快速算法

与 FFT 一样，快速哈特利变换以 O(N log N) 次运算计算长度为 N 的序列的 DHT；此外，由于每个中间量都保持为实数，原地 FHT 所需的工作内存约为同等长度复数 FFT 的一半。<sup>[3](https://technav.ieee.org/topic/discrete-hartley-transforms/)</sup> 布雷斯韦尔为该变换配上了基2按时间抽取的 FHT，算法文献很快补全了这一家族的其他成员：1985年 IEEE 论文《论离散哈特利变换的计算》（*On computing the discrete Hartley transform*）表明，按频率抽取、基4、分裂基、素因子以及维诺格拉德构造均可移植到 DHT 上<sup>[3](https://technav.ieee.org/topic/discrete-hartley-transforms/)</sup>。后来的工作推导出了 N = 2<sup>t</sup> 点 DHT 的递归算法（其作者将其归入最低算术复杂度一类），以及满足 DFT/DHT 乘法复杂度理论下界的因式分解方案<sup>[7](https://www.sciencedirect.com/science/article/abs/pii/S0165168401001128)</sup><sup> • </sup><sup>[8](https://arxiv.org/abs/1502.01038)</sup>。

然而，性能比较却偏向于专用的实输入 FFT。莱斯大学的亨里克·V·索伦森（Henrik V. Sorensen）、道格拉斯·L·琼斯（Douglas L. Jones）、迈克尔·T·海德曼（Michael T. Heideman）和 C·西德尼·伯勒斯（C. Sidney Burrus）在1987年的一项教程性研究中，针对功率谱与循环卷积比较了快速哈特利变换、快速余弦变换与实值 FFT 算法，发现这些替代技术所需的加法次数总是多于实值 FFT 方法，且生成的代码长度与复杂度相当或更高<sup>[9](https://experts.illinois.edu/en/publications/real-valued-fast-fourier-transform-algorithms/)</sup>。FFTW 库的文档直言不讳：“DHT 并不比 DFT 快。那是一个古老而持久的误解，早在1987年就已被澄清。”在 FFTW 中，DHT 是通过后处理一个 r2hc（实到半复）变换来计算的，因此通常没有性能上的理由去偏好它<sup>[5](https://www.fftw.org/fftw3_doc/The-Discrete-Hartley-Transform.html)</sup>。详细的逐项评估表明，为实输入量身定制的 FFT 算法在运算次数上通常与最高效的 FHT 相当，或略胜一筹；因此，DHT 的吸引力较少在于算术总量，而更多在于其直白的代码、连续的内存使用以及规整的硬件结构。<sup>[3](https://technav.ieee.org/topic/discrete-hartley-transforms/)</sup>

实现者面临一个多维的微妙之处：沿数组的每个轴做一维 DHT，会得到变换的可分离乘积，这与真正的多维哈特利变换不同——后者在求和后的自变量上使用单个 cas 核；要得到后者，至多需要若干次秩1的后处理。<sup>[5](https://www.fftw.org/fftw3_doc/The-Discrete-Hartley-Transform.html)</sup><sup> • </sup><sup>[3](https://technav.ieee.org/topic/discrete-hartley-transforms/)</sup>

## 应用

哈特利变换已应用于地球物理学、电力工程和模式识别，已发表的信号处理工作涵盖多个领域<sup>[2](https://ietresearch.onlinelibrary.wiley.com/doi/full/10.1049/joe.2014.0350)</sup>。IEEE 的专题综述列举了实值传感器数据的频谱分析、数字滤波中的快速卷积与相关、图像编码、水印与纹理分析、包括基于哈特利的 OFDM 变体在内的多载波通信、光学与干涉信号处理，以及诸如心电图特征提取之类的生物医学信号分析<sup>[3](https://technav.ieee.org/topic/discrete-hartley-transforms/)</sup>。

**相位处理。** 一个导出量——白化哈特利谱——是一个有界函数，封装了信号的相位内容。与傅里叶相位谱不同，它不存在不连续或缠绕模糊的问题，因此无需进行相位解缠。它已被应用于音频（枪声）分类、语音（音素）分类，并作为信号分析中一种抗噪特征；由它导出的哈特利相位倒谱已被用于信号定位以及电能质量中瞬态事件的检测<sup>[2](https://ietresearch.onlinelibrary.wiley.com/doi/full/10.1049/joe.2014.0350)</sup>。

**实时模拟。** 2018年《应用海洋研究》（*Applied Ocean Research*）上的一项研究比较了傅里叶变换与哈特利变换在由方向波谱实时模拟三维海面高程方面的表现，该任务与船舶驾驶台模拟器相关。尽管 FFT 一直是首选，但该研究发现快速哈特利变换是一种有效的替代方案，并具有一些优势，研究重点在于性能和内存，这两者对于实时应用具有决定性意义<sup>[6](https://accedacris.ulpgc.es/handle/10553/41355?locale=es)</sup>。

**插值与成像。** 1997年一种利用 DHT 对离散时间实信号进行插值的方案显示，其计算复杂度显著低于相应的基于 FFT 的实现，计算机模拟表明基于哈特利的方案比基于傅里叶的插值明显更快<sup>[10](https://www.sciencedirect.com/science/article/pii/S0045790696000298)</sup>。在光学中，一种用于分析双曝光散斑照片杨氏条纹衍射图样的二维哈特利变换算法，提供了与傅里叶方法相同的分析能力，同时提高了处理速度<sup>[11](https://research.monash.edu/en/publications/speckle-photography-fringe-analysis-using-the-discrete-hartley-tr)</sup>。

## References

1. [R. V. L. Hartley (1942). A More Symmetrical Fourier Analysis Applied to Transmission Problems. Proceedings of the I.R.E.](https://gwern.net/doc/math/1942-hartley.pdf)
2. [Paraskevas et al. (2015). Hartley transform and the use of the Whitened Hartley spectrum as a tool for phase spectral processing. The Journal of Engineering.](https://ietresearch.onlinelibrary.wiley.com/doi/full/10.1049/joe.2014.0350)
3. [Discrete Hartley transforms, IEEE Technology Navigator](https://technav.ieee.org/topic/discrete-hartley-transforms/)
4. [Finding Aid to the Papers of Ronald N. Bracewell, 1936–2007, NRAO/AUI Archives](https://www.nrao.edu/archives/bracewell-finding-aid)
5. [The Discrete Hartley Transform, FFTW 3.3.11 documentation](https://www.fftw.org/fftw3_doc/The-Discrete-Hartley-Transform.html)
6. [Varela, Rodriguez, Guedes Soares (2018). Comparison study between the Fourier and the Hartley transforms for the real-time simulation of the sea surface elevation. Applied Ocean Research 74: 227–236.](https://accedacris.ulpgc.es/handle/10553/41355?locale=es)
7. [P. Yu, H. Hua (2001). A new fast recursive algorithm for computing discrete Hartley transform and its implementation. Signal Processing 81(10): 2235–2241.](https://www.sciencedirect.com/science/article/abs/pii/S0165168401001128)
8. [A Factorization Scheme for Some Discrete Hartley Transform Matrices. arXiv:1502.01038.](https://arxiv.org/abs/1502.01038)
9. [Sorensen, Jones, Heideman, Burrus (1987). Real-Valued Fast Fourier Transform Algorithms. IEEE Trans. Acoust., Speech, Signal Process. 35(6): 849–863.](https://experts.illinois.edu/en/publications/real-valued-fast-fourier-transform-algorithms/)
10. [Algorithm for efficient interpolation of real-valued signals using discrete Hartley transform. Computers & Electrical Engineering 23(2): 129–134 (1997).](https://www.sciencedirect.com/science/article/pii/S0045790696000298)
11. [T. W. Ng (1997). Speckle photography fringe analysis using the discrete Hartley transform. Optics Communications 136(1–2): 11–15.](https://research.monash.edu/en/publications/speckle-photography-fringe-analysis-using-the-discrete-hartley-tr)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数学分析与数学模型 › Harmonic analysis, transforms, and integral equations

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/hartley-transform

English original: https://www.edgepedia.org/hartley-transform
