cp.table(x, cost.fun="entropy", n.levels=6, taper="poly2", dct.type=2, boundary="periodic", n.taper=NULL, scale=NULL, thresh=NULL, p=2, prob=.5) as.ptable(x)
The returned cosine packet table has class ptable, inheriting from classes cp, and crystal.vector. See crystal.vector.object for details about the data structure.
as.ptable returns x, if x is an object of ptable or cpt.
The jth level of a cosine packet table is equivalent to result from the block.cpt function with n.levels=j. A cosine packet crystal corresonds to the DCT applied to a tapered block of the original signal.
Overall, a cosine packet table contains 2^(n.levels+1)-1 cosine packet crystals. Each crystal has a crystal.name of the form cj.b where j is the level and b is the block within level. You can subscript an entire level of a cosine packet table, or you can subscript sets of crystals either by position or name.
Available tapers:
Available boundary rules:
See the chapter on "Cosine Packet Analysis" of S+WAVELETS User's Manual for more details about cp.table and cosine packet analysis.
The default optional arguments n.levels, taper, dct.type, boundary can be reset using function wavelet.options, see wavelet.options for details.
Coifman, R. and Wickerhauser, V. (1992). Entropy-based algorithms for best basis selection. IEEE Transactions on Information Theory Vol. 38(2), pages 713-718.
Wickerhauser, M. V. (1994). Adapted Wavelet Analysis -- from theory to software.
xx <- make.signal("linchirp", 512) yc <- cp.table(xx, taper="trig", n.levels=4) eda.plot(yc)