This is documentation for Mathematica 4, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

TrListCorrelate

ListConvolve

FilledSmallSquareListConvolve[ker, list] forms the convolution of the kernel ker with list.

FilledSmallSquareListConvolve[ker, list, k] forms the cyclic convolution in which the k element of ker is aligned with each element in list.

FilledSmallSquareListConvolve[ker, list, , ] forms the cyclic convolution whose first element contains list[[1]] ker[[]] and whose last element contains list[[-1]] ker[[]].

FilledSmallSquareListConvolve[ker, list, klist, p] forms the convolution in which list is padded at each end with repetitions of the element p.

FilledSmallSquareListConvolve[ker, list, klist, , , ... ] forms the convolution in which list is padded at each end with cyclic repetitions of the .

FilledSmallSquareListConvolve[ker, list, klist, padding, g, h] forms a generalized convolution in which g is used in place of Times and h in place of Plus.

FilledSmallSquareListConvolve[ker, list, klist, padding, g, h, lev] forms a convolution using elements at level lev in ker and list.

FilledSmallSquare With kernel and list , ListConvolve[ker, list] computes , where the limits of the sum are such that the kernel never overhangs either end of the list.

FilledSmallSquare Example: ListConvolve[x,y, a,b,c] LongRightArrow.

FilledSmallSquareListConvolve[ker, list] gives a result of length Length[list]-Length[ker]+1.

FilledSmallSquareListConvolve[ker, list] allows no overhangs and is equivalent to ListConvolve[ker, list, -1, 1].

FilledSmallSquareListConvolve[ker, list, k] is equivalent to ListConvolve[ker, list, k, k].

FilledSmallSquare The values of and in ListConvolve[ker, list, , ] determine the amount of overhang to allow at each end of list.

FilledSmallSquare Common settings for , are:

FilledSmallSquare Examples: ListConvolve[x,y, a,b,c, 1,1] LongRightArrow.

FilledSmallSquareListConvolve[x,y, a,b,c, 1,-1] LongRightArrow.

FilledSmallSquare With maximal overhang at one end only, the result from ListConvolve is the same length as list.

FilledSmallSquareListConvolve[ker, list, , , padlist] effectively lays down repeated copies of padlist, then superimposes one copy of list on them and forms a convolution of the result.

FilledSmallSquare Common settings for padlist are:

FilledSmallSquareListConvolve works with multidimensional kernels and lists of data.

FilledSmallSquareListConvolve[ker, list, , , ... , , , ... ] forms the cyclic convolution whose 1,1,... element contains ker[[, , ... ]] list[[1,1,... ]] and whose -1,-1,... element contains ker[[, , ... ]] list[[-1,-1,... ]].

FilledSmallSquare, is taken to be equivalent to , , ... , , , ... .

FilledSmallSquare When a function h is specified to use in place of Plus, explicit nested h expressions are generated with a depth equal to the depth of ker.

FilledSmallSquareListConvolve works with exact numbers and symbolic data as well as approximate numbers.

FilledSmallSquare Implementation Notes: see section A.9.4.

FilledSmallSquare See The Mathematica Book: Section 3.8.4.

FilledSmallSquare See also: ListCorrelate, Partition, Inner, CellularAutomaton, PadLeft.

Further Examples

TrListCorrelate