afb(x, af)
afb2D(x, af1, af2 = NULL)
afb2D.A(x, af, d)
sfb(lo, hi, sf)
sfb2D(lo, hi, sf1, sf2 = NULL)
sfb2D.A(lo, hi, sf, d)
afb
)
is a list with two elementssfb
) is the
output signal.
In two dimensions the output for the analysis filter bank
(afb2D
) is a list with four elementssfb2D
) is the
output array. The functions afb2D.A
and sfb2D.A
implement the
convolutions, either for analysis or synthesis, in one dimension
only. Thus, they are the workhorses of afb2D
and
sfb2D
. The output for the analysis filter bank along one
dimension (afb2D.A
) is a list with two elements
sfb2D.A
) will be the output array, where the dimension of
synthesis will be twice its original length.## EXAMPLE: afb2D, sfb2D x = matrix(rnorm(32*64), 32, 64) af = farras()$af sf = farras()$sf x.afb2D = afb2D(x, af, af) lo = x.afb2D$lo hi = x.afb2D$hi y = sfb2D(lo, hi, sf, sf) err = x - y max(abs(err))
## Example: afb2D.A, sfb2D.A x = matrix(rnorm(32*64), 32, 64) af = farras()$af sf = farras()$sf x.afb2D.A = afb2D.A(x, af, 1) lo = x.afb2D.A$lo hi = x.afb2D.A$hi y = sfb2D.A(lo, hi, sf, 1) err = x - y max(abs(err))