basisplot.wp: Function to graphically select a wavelet packet basis

basisplot.wpR Documentation

Function to graphically select a wavelet packet basis

Description

Note, one or two (depending on the state of draw.mode) graphics windows with mouse-clickable interfaces have to open to use this function.

Graphically select a wavelet packet basis associated with a wavelet packet object. Left-click selects packets, right click exits the routine.

Usage

## S3 method for class 'wp'
basisplot(x, draw.mode=FALSE, ...)

Arguments

x

The wp.object for which you wish to select a basis graphically for.

draw.mode

If TRUE then TWO graphics windows have to be open. Every time a packet is selected in the packet selection window, a representation of the wavelet packet basis function is drawn in the other window

...

Other arguments

Details

A wavelet packet basis described in WaveThresh using the node vector object (class from MaNoVe.wp) which for wavelet packets is nvwp. This function takes a wp.object object and graphically depicts all possible basis function locations. The user is then invited to click on different packets, these change colour. When finished, the user right clicks on the graphic and the selected basis is returned.

Note that the routine does not check to see whether the basis is legal. You have to do this. A legal basis can select packets from different levels, however you can't select packets that both cover the same packet index, however every packet index has to be covered.

A better function would check basis legality!

Value

An object of class nvwp which contains the specification for the basis.

Author(s)

G P Nason

See Also

addpkt, InvBasis, MaNoVe.wp, plotpkt, wp


wavethresh documentation built on Nov. 16, 2022, 5:16 p.m.