Convolution and Down Sampling Operator

DESCRIPTION:
Convolution and down sampling (decimation) operator.

USAGE:
convdown(x, filter, boundary, convfast=F)

REQUIRED ARGUMENTS:
x:
a vector or a time series.
filter:
a vector of filter coefficients.
boundary:
a character string giving the name of the boundary rule, e.g., "periodic". See details below.

OPTIONAL ARGUMENTS:
convfast:
logical flag indicating if fast algorithm should be used.

VALUE:
if n=length(x) is even, then the filtered vector is of length n/2.

If n is odd, then when filter is a low-pass filter (is.low.pass(filter)==TRUE), the filtered vector is of length ceiling(n/2) and when filter is a high-pass filter (is.high.pass(filter)==TRUE), the filtered vector is of length floor(n/2).

When boundary="reflection", and both n and m=length(filter) are odd, then if is.dual(filter)==FALSE and is.low.pass(filter)==TRUE, or is.dual(filter)==TRUE and is.high.pass(filter)==TRUE, the filtered vector is of length ceiling(n/2); otherwise the filtered vector is of length floor(n/2).


DETAILS:
See the printed help file for the equation that determines the output vector.

Available boundary rules:


SEE ALSO:
convup , dwt , wave.filter , wp.table.