Learn R Programming

wavethresh (version 4.6.1)

draw.mwd: Draws a wavelet or scaling function used to compute an `mwd' object

Description

Draws picture of one wavelet or scaling function associated with the multiple wavelet decomposition object. mwd.object.

Usage

## S3 method for class 'mwd':
draw(mwd, phi = 0, psi = 0, return.funct = FALSE, \dots)

Arguments

mwd
The mwd class object whose associated wavelet or scaling function you wish to draw.
phi
description not yet available
psi
If phi is non-zero then the `phi'-th scaling function of the wavelet family used for mwd will be plotted. phi must be between 0 and mwd$filter$nphi.
return.funct
If true then the vector used as phi/psi in the plot command is returned.
...
Additional arguments to pass to the plot function

Value

  • If the return.funct argument is set to TRUE then the function values in the plot are returned otherwise NULL is returned.

RELEASE

Version 3.9.6 (Although Copyright Tim Downie 1995-6).

Details

It is usual to specify just one of phi and psi. IF neither phi nor psi are specified then phi=1 is the default. An error is generated if both phi=0 and psi=0 or if both are nonzero.

See Also

accessC.mwd, accessD.mwd, mfirst.last, mfilter.select, mwd, mwd.object, mwr, plot.mwd, print.mwd, putC.mwd, putD.mwd, summary.mwd, threshold.mwd, wd, wr.mwd.

Examples

Run this code
#
# Do a multiple wavelet decomposition on vector: ynoise
#
ynoise <- rnorm(512, sd = 0.1)
ymwd <- mwd(ynoise,filter.type="Geronimo")
#
# Draw a picture of the second Geronimo wavelet.
#
draw(ymwd,psi=2)
#
#

Run the code above in your browser using DataLab