MaNoVe
function.## S3 method for class 'wst':
InvBasis(wst, nv, \dots)
wst.object
specification
are a representation of a signal with respect to a library
of basis functions. A particular basis specification can be obtained
using the numtonv
function which can pick an indexed
basis function, or MaNoVe.wst
which uses the
Coifman-Wickerhauser minimum entropy method to select a basis.
This function takes a wst.object
and
a particular basis description (in a nv.object
node vector
object) and inverts the representation with respect to that selected basis.numtonv
,nv.object
,MaNoVe.wst
,threshold.wst
,wst
#
# Let's generate a noisy signal
#
x <- example.1()$y + rnorm(512, sd=0.2)
#
# You can plot this if you like
#
ts.plot(x)
#
# Now take the nondecimated wavelet transform
#
xwst <- wst(x)
#
# Threshold it
#
xwstT <- threshold(xwst)
#
# You can plot this too if you like
#
plot(xwstT)
#
# Now use Coifman-Wickerhauser to get a "good" basis
#
xwstTNV <- MaNoVe(xwstT)
#
# Now invert the thresholded wst using this basis specification
#
xTwr <- InvBasis(xwstT, xwstTNV)
#
# And plot the result, and superimpose the truth in dotted
#
ts.plot(xTwr)
lines(example.1()$y, lty=2)
Run the code above in your browser using DataLab