Create Cosine Packet Function

DESCRIPTION:
Creates a cosine packet function.

USAGE:
cosine.packet(taper="poly2", level=0, block=0,interval=c(0, 1),
              dct.type=2, frequency=0, epsilon=.5)

OPTIONAL ARGUMENTS:
taper:
a character string, indicating the taper function: "boxcar", "poly1", "poly2", "poly3", "poly4", "poly5", and "trig".
level:
level number, see details below.
block:
block number in the given level, see details below.
frequency:
see details below.
interval:
see details below.
dct.type:
available DCT types: 2 or 4, see dct for more details.
epsilon:
a number or a vector of length 2, widths of the left and right "cutoff" (folding) regions.

VALUE:
an object of class cosine.packet.


DETAILS:
See the printed help file for the general forms of type-II and type-IV cosine packet functions.

The algorithms for the taper functions are given in the S+WAVELETS User's Manual, in the section "Cosine Packet Algorithms". They are discussed in greater depth in Wickerhauser (1994).

Generic functions such as print, plot, summary, support have methods to show the properties of the cosine.packet object.


REFERENCES:
Wickerhauser, M. V. (1994). Adapted Wavelet Analysis -- from theory to software.

SEE ALSO:
cosine.packet.object , dct , fft , plot.cosine.packet .

EXAMPLES:
plot(cosine.packet(taper="poly1", frequency=4))
plot(cosine.packet(taper="poly1", level=2, frequency=4))