Make a Wavelet Crystal.

DESCRIPTION:
Makes an object of class "wp.crystal". A wp.crystal is a collection of wavelet coefficients.

USAGE:
wp.crystal(x, dict=NULL, shift=NULL, crystal.name="",
           odd=attr(x, "odd"), ...)
wp.inf.crystal(x, dict=NULL, shift=NULL, crystal.name="",
               odd=attr(x, "odd"), ...)
wp.nd.crystal(x, dict=NULL, shift=NULL, crystal.name="",
              odd=attr(x, "odd"), ...)

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

OPTIONAL ARGUMENTS:
dict:
wavelet packet dictionary which contains wavelet name, boundary rules, etc.
shift:
location parameter of the first coefficient in the crystal.
crystal.name:
name of the crystal.
odd:
a vector of logical flags indicating if the ancestors of the crystal are of odd lengths.
...:
arguments for wp.dict.

VALUE:
an object of class "wp.crystal".

wp.inf.crystal returns an object of class "wp.inf.crystal", which inherits from "wp.crystal".

wp.nd.crystal returns an object of class "wp.nd.crystal", which inherits from "wp.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 behavior.

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 wavelet 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.


SEE ALSO:
dwt , wp.atom , wp.crystal.object .