cp.crystal
. A
cp.crystal
is a collection of
cosine packet atoms.
cp.crystal(x, boundary=NULL, taper=NULL, dct.type=NULL, interval=NULL, crystal.name="", ...)
"cp.reflect", "periodic"
and
"zero"
.
"boxcar", "poly1", "poly2", "poly3", "poly4", "poly5"
, or
"trig"
.
2
or
4
indicating which of DCT-II or DCT-IV should be used.
See the function
dct
for details.
x
lives.
cp.atom
for more details.
cp.dict
may also be passed to this function.
cp.crystal
.
A crystal is a vector of coefficients, each of which corresponds to an atom.
All operations defined for atoms, such as
center
,
bandwidth
, etc., also
work for crystals with the obvious modification in behaviour.
Arithmetic operations can be applied to crystals. Furthermore, crystals are
preserved under binary operations involving a scalar or two crystals of the
same type (e.g., same frequency and level in the case of cosine crystals).
This allows operations on crystals to be performed transparently, such as
addition of crystals in a reconstruction algorithm or nonlinear shrinkage of
coefficients for smoothing. See the examples in
dwt
and
dwt.2d
.