For sequences indexed by the integers, discrete convolution adds products whose indices sum to the output index:
For finite sequences, treat every unspecified entry as zero; the sum then has finitely many nonzero terms. For infinite sequences, a convergence hypothesis is needed, for example absolute summability of both sequences.
Take at indices and at indices . Their convolution is at indices :
Equivalently, : add an unshifted and a one-step shifted copy of . This explains the output by superposition, with every index included.
Figure 1.
Discrete convolution combines index pairs, shifted copies, polynomial coefficients and outcome counts
. Details.
The same products appear in polynomial multiplication and generating functions:
A term times contributes to coefficient , precisely the index condition in discrete convolution. In probability, counts the outcomes of two independent fair coin tosses by their number of heads, while counts the outcomes of one more toss. Dividing the output by eight gives the probability mass function of the binomial distribution with and . No new arithmetic is needed to pass from coefficient multiplication to counting independent sums.
The full finite convolution is different from circular convolution, where indices wrap modulo a chosen length. Wrapping this four-term output to length three adds its last entry to its first and gives . When using a discrete Fourier transform to compute the full convolution, zero padding to length at least the sum of the input lengths minus one prevents this wraparound. [ref]
For arrays indexed by -bit nonnegative integers, their XOR convolution is , where is bitwise exclusive or. If entries count choices of Grundy numbers, its repeated application counts sums of impartial games with a specified combined Grundy number. The Hadamard transform turns this operation into pointwise multiplication.
For arrays indexed by integers modulo , their cyclic convolution is
When and count choices with respective residue classes and , the cyclic convolution counts pairs whose sum has residue class . Repeated cyclic convolution therefore counts sums of longer sequences. The discrete Fourier transform converts cyclic convolution into pointwise multiplication.
Circular convolution of two length- sequences uses modular arithmetic for their indices. Extending both inputs periodically gives the displayed formula. Equivalently, fold a finite discrete convolution into residue classes modulo by adding entries whose indices are congruent. The discrete Fourier transform of the circular convolution is the product of the two discrete Fourier transforms, with the usual unnormalized forward transform and inverse convention.
Zero padding extends a finite sequence by zero entries to a specified length. For input lengths , their full discrete convolution has length at most . Padding both inputs to allows circular convolution to represent this full result without folded entries.

Articles by others on the same topic (0)

There are currently no matching articles.