LCONV Linear convolution
Usage: h=lconv(f,g);
LCONV(f,g) computes the linear convolution of f and g. The linear
convolution is given by
Lh-1
h(l+1) = sum f(k+1) * g(l-k+1)
k=0
with L_{h} = L_{f} + L_{g} - 1 where L_{f} and L_{g} are the lengths of f and g,
respectively.
LCONV(f,g,'r') computes the linear convolution of f and g where g is reversed.
This type of convolution is also known as linear cross-correlation and is given by
Lh-1
h(l+1) = sum f(k+1) * conj(g(k-l+1))
k=0
LCONV(f,g,'rr') computes the alternative where both f and g are
reversed given by
Lh-1
h(l+1) = sum conj(f(-k+1)) * conj(g(k-l+1))
k=0
In the above formulas, l-k, k-l and -k are computed modulo L_{h}.
The input arrays f and g can be 1D vectors or one of them can be
a multidimensional array. In either case, the convolution is performed
along columns with row vectors transformed to columns.
Url: http://ltfat.github.io/doc/fourier/lconv.html
See also: pconv.
Package: ltfat