wavegrow | R Documentation |
Use mouse to select which wavelets to enter a wavelet synthesis, continually plot the reconstruction and the wavelet tableaux.
wavegrow(n = 64, filter.number = 10, family = "DaubLeAsymm", type = "wavelet",
random = TRUE, read.value = TRUE, restart = FALSE)
n |
Number of points in the decomposition |
filter.number |
The wavelet filter.number to use,
see |
family |
The wavelet family to use in the reconstruction |
type |
If |
random |
If |
read.value |
If |
restart |
If |
This function can perform many slightly different actions. However, the basic idea is for a tableaux of wavelet coefficients to be displayed in one graphics window, and the reconstruction of those coefficients to be displayed in another graphics window.
Hence, two graphics windows, capable of plotting and mouse interaction (e.g. X11, windows or quartz) with the locator function, are required to be active.
When the function starts up an initial random tableaux is displayed and its reconstruction.
The next step is for the user to select coefficients on the tableaux. What happens next specifically depends on the arguments above. By default selecting a coefficient causes that coefficient scale and location to be identified, then a random sample is taken from a N(0,1) random variable and assigned to that coefficient. Hence, the tableaux is updated, the reconstruction with the new coefficient computed and both are plotted.
If type="wavelet"
is used then decimated wavelets are used,
if type="station"
then the time-ordered non-decimated wavelets
are used.
If random=FALSE
then new values for the coefficients are either
selected (by asking the user for input) if read.value=TRUE
or
the value of 1 is input.
If restart=TRUE
then the function merely displays the wavelet
associated with the selected coefficient. Hence, this option is useful
to demonstrate to people how wavelets from different points of the
tableaux have different sizes, scales and locations.
If the mouse locator function is exited (this can be a right-click in some windowing systems, or pressing ESCAPE) then the function asks whether the user wishes to continue. If not then the function returns the current tableux. Hence, this function can be useful for users to build their own tabeleaux.
The final tableaux.
G P Nason
wd
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.