Filter Matrix

DESCRIPTION:

Forms a matrix from a given filter. Not intended for high level use.

USAGE:

filter.matrix(f, nrow=1, ncol=NULL, periodize=F, decimate=T) 

OPTIONAL ARGUMENTS:

f
a numeric vector of filter coefficients.
nrow
number of rows in the desired matrix.
ncol
number of columns in the desired matrix. In effect only when periodize=F and decimate=T.
periodize
logical flag indicating whether to periodize the filter at the ends. The default is FALSE; the filter is not periodized.
decimate
logical flag indicating whether to decimate by 2. The default is TRUE.

VALUE:

if periodize=T and decimate=T, returns an nrow by 2nrow matrix; if periodize=T and decimate=F, returns an nrow by nrow matrix; if periodize=F and decimate=T, returns an nrow by ncol matrix, where `ncol >= 2*nrow+m-2, m=length(f)'. if periodize=F and decimate=F, returns an nrow by nrow+m-1 matrix;

DETAILS:

When decimate=T, the filter f will be shifted by 2 to the right from the previous row; when decimate=F, the filter f will be shifted by 1 to the right from the previous row.

SEE ALSO:

, .