Computes the quadrature mirror filter from a given filter.

qmf(g, low2high=TRUE)

Arguments

g

Filter coefficients.

low2high

Logical, default is TRUE which means a low-pass filter is input and a high-pass filter is output. Setting low2high=F performs the inverse.

Value

Quadrature mirror filter.

Details

None.

References

Any basic signal processing text.

See also

Author

B. Whitcher

Examples

## Haar wavelet filter
g <- wave.filter("haar")$lpf
qmf(g)
#> [1]  0.7071068 -0.7071068