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

ListCorrelate

ListCorrelate[ker, list]
forms the correlation of the kernel ker with list.
ListCorrelate[ker, list, k]
forms the cyclic correlation in which the k^(th) element of ker is aligned with each element in list.
ListCorrelate[ker, list, {kL, kR}]
forms the cyclic correlation whose first element contains list[[1]]ker[[kL]] and whose last element contains list[[-1]]ker[[kR]].
ListCorrelate[ker, list, klist, p]
forms the correlation in which list is padded at each end with repetitions of the element p.
ListCorrelate[ker, list, klist, {p1, p2, ...}]
forms the correlation in which list is padded at each end with cyclic repetitions of the pi.
ListCorrelate[ker, list, klist, padding, g, h]
forms a generalized correlation in which g is used in place of Times and h in place of Plus.
ListCorrelate[ker, list, klist, padding, g, h, lev]
forms a correlation using elements at level lev in ker and list.
  • With kernel Kr and list as, ListCorrelate[ker, list] computes , where the limits of the sum are such that the kernel never overhangs either end of the list.
  • For higher-dimensional lists, ker must be reversed at every level.
{1,-1}no overhangs (default)
{1,1}maximal overhang at the right-hand end
{-1,-1}maximal overhang at the left-hand end
{-1,1}maximal overhangs at both beginning and end
New in 4