type="station"
argument).
wst(data, filter.number=10, family="DaubLeAsymm", verbose=F)
The coefficients produced by this transform are exactly the same
as those produced by the wd function with
the type="station"
option except in that function
the coefficients are time-ordered. In the wst
function the coefficients are produced by a wavelet packet like
algorithm with a cyclic rotation step instead of processing with
the father wavelet mirror filter at each level.
The coefficients produced by this function are useful in curve estimation problems in conjunction with the thresholding function threshold.wst and either of the inversion functions AvBasis.wst and InvBasis.wst. The coefficients produced by the time-ordered non-decimated wavelet transform are more useful for time series applications: e.g. the evolutionary wavelet spectrum computation performed by ewspec.
Note that a time-ordered non-decimated wavelet transform object may be converted into a packet-ordered non-decimated wavelet transform object (and vice versa) by using the convert function.
# # Let's look at the packet-ordered non-decimated wavelet transform # of the data we used to do the time-ordered non-decimated wavelet # transform exhibited in the help page for wd. # > test.data <- example.1()$y # # Plot it to see what it looks like (piecewise polynomial) # > tsplot(test.data) # # Now let's do the packet-ordered non-decimated wavelet transform. # > TDwst <- wst(test.data) # # And let's plot it.... # > plot(TDwst) # # The coefficients in this plot at each resolution level are the same # as the ones in the non-decimated transform plot in the wd # help page except they are in a different order. For more information # about how the ordering works in each case see # Nason, Sapatinas and Sawczenko, 1998. # # Next example # ------------ # The chirp signal is also another good example to use. # # # Generate some test data # > test.chirp <- simchirp()$y > tsplot(test.chirp, main="Simulated chirp signal") # # Now let's do the packet-ordered non-decimated wavelet transform. # For a change let's use Daubechies extremal phase wavelet with 6 # vanishing moments (a totally arbitrary choice, please don't read # anything into it). # > chirpwst <- wst(test.chirp, filter.number=6, family="DaubExPhase") > plot(chirpwst, main="POND WT of Chirp signal")