Make a Cosine Packet Crystal.

DESCRIPTION:
Makes an object of class "cp.crystal". A cp.crystal is a collection of cosine packet atoms.

USAGE:
cp.crystal(x, boundary=NULL, taper=NULL, dct.type=NULL,
           interval=NULL, crystal.name="", ...)

REQUIRED ARGUMENTS:
x:
a time series or numeric vector.

OPTIONAL ARGUMENTS:
boundary:
a character string, available boundary rules: "cp.reflect", "periodic" and "zero".
taper:
a character string, indicating the taper function: "boxcar", "poly1", "poly2", "poly3", "poly4", "poly5", or "trig".
dct.type:
one of 2 or 4 indicating which of DCT-II or DCT-IV should be used. See the function dct for details.
interval:
interval on which x lives.
crystal.name:
name of the crystal (same as the name of the first atom in the crystal). See cp.atom for more details.
...:
arguments for cp.dict may also be passed to this function.

VALUE:
an object of class cp.crystal.

DETAILS:
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.


SEE ALSO:
bandwidth , center , freq.bandwidth , freq.center , cp.crystal.object, reconstruct , eda.plot .