Content deleted Content added
mNo edit summary |
|||
Line 3:
In [[signal processing]], the '''overlap–add method''' is an efficient way to evaluate the discrete [[convolution]] of a very long signal <math>x[n]</math> with a [[finite impulse response]] (FIR) filter <math>h[n]</math>''':'''
[[Image:Overlap-add algorithm.svg|thumb|500px|Fig 1: A sequence of
{{NumBlk|:|<math>
Line 40:
where''':'''
* DFT<sub>N</sub> and IDFT<sub>N</sub> refer to the [[Discrete Fourier transform]] and its inverse, evaluated over ''N'' discrete points, and
* {{math|L}} is customarily chosen such that {{math|N {{=}} L+M-1}} is an integer power-of-2, and the transforms are implemented with the [[Fast Fourier transform|FFT]] algorithm, for efficiency.
==Pseudocode==
The following is a [[pseudocode]] of the algorithm:
Line 62 ⟶ 61:
'''end'''
==
[[Image:FFT_size_vs_filter_length_for_Overlap-add_convolution.svg|thumb|400px|Fig 2: A graph of the values of N (an integer power of 2) that minimize the cost function <math>\tfrac{N\left(\log_2 N + 1\right)}{N - M + 1}</math>]]
Line 85 ⟶ 84:
[[Image:gain oa method.png|frame|none|Fig 3: Gain of the overlap-add method compared to a single, large circular convolution. The axes show values of signal length N<sub>x</sub> and filter length N<sub>h</sub>.]]
==
* [[Overlap–save method]]
==Notes==
Line 109 ⟶ 108:
}}
==
*{{Cite book
|author1=Oppenheim, Alan V. |author2=Schafer, Ronald W. | title=Digital signal processing
|