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

Arne Kovac (kovac@cauchy.mathematik.uni-essen.de)
Thu, 20 May 1999 17:27:33 +0200 (DFT)

Date: Thu, 20 May 1999 17:27:33 +0200 (DFT)
From: Arne Kovac <kovac@cauchy.mathematik.uni-essen.de>
To: Vorlow@bigfoot.com
Subject: Re: [R] Wavethresh + accessC > Error: wd.structure has no class
In-Reply-To: <37442117.5B6A9497@durham.ac.uk>

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
like

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

Best

Arne

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


This archive was generated by hypermail 1.02.