[R] Wavethresh + accessC > Error: wd.structure has no class

Arne Kovac kovac at cauchy.mathematik.uni-essen.de
Thu May 20 17:27:33 CEST 1999

On Thu, 20 May 1999, K.E.Vorloou wrote:

>         tdecomp <- wd(test.data)
>         tdecomp.thresh <- threshold(tdecomp)
>         trecons <- wr(tdecomp.thresh)
>         plot(accessC(trecons))
> I receive the following reply:
> Error: wd.structure has no class
> Does anybody know what the problem is ?

trecons is a vector, but accessC returns the "smooth" coefficients of some
wavelet decomposition. Therefore accessC(trecons) does not make sense.
If you want to plot the reconstructed function try simply 

> plot(trecons)

(maybe with an optional ty="l" argument to get straight lines)

If you want to extract the smooth coefficients at level j, try something

> tdecomp.Cj<-accessC(tdecomp.thresh,level=j)



r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list