cp.costs.2d(x, cost.fun="threshold", n.levels=NULL, taper="poly2", dct.type=2, boundary="periodic", n.taper=NULL, scale=NULL, thresh=NULL, p=2, prob=.5)
Available cost functionals:
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).
The default optional arguments n.levels, taper, dct.type, boundary can be reset using function wavelet.options, see wavelet.options for details.
phone <- phone-mean(phone) ccost <- cp.costs.2d(phone, taper="poly2", n.levels=3) bb2 <- best.basis.2d(ccost, phone) bb2 plot(bb2)