Ops Group Method for crystal.list Objects

DESCRIPTION:

Group Method defining mathematical operations on crystal.list objects

USAGE:

e1 OP e2 

REQUIRED ARGUMENTS:

e1, e2
two compatible crystal.list objects. See below for details.

VALUE:

a crystal.list object, each coefficient (interior and boundary) of which will be the result of applying the operator to the corresponding coefficients from both of the arguments.

DETAILS:

All the attributes of the crystal.list objects must match exactly, e.g. they must have the same sample sizes, same resolution levels, same boundary rules, same wavelet filters (for wavelet packet analysis) or tapering functions (for cosine packet analysis). The operation is applied to the corresponding pairs of crystals.

If the crystal does not inherit from wp.inf.crystal, then the default method is applied to the vector of coefficients. If the crystal inherits from wp.inf.crystal, then the default method is applied separately to the interior coefficients, the left boundary coefficients and the right boundary coefficients. Arithmetic operations will fail if there are any non-numeric coefficients.

This is a group method for the functions of the Ops group, the basic operators for arithmetic, comparison, and logic.

BUGS:

Unary operators - (sign reverse) and ! (exclusion) are not working. Use 0-e1 for sign reverse, and 1-e1 for logical exclusion.

SEE ALSO:

, , , .