Learn R Programming

wmtsa (version 1.1-1)

wavTransform: Constructor function for objects of class wavTransform

Description

Packs input information regarding a discrete wavelet transform into a list.

Usage

wavTransform(data, series, n.levels, dictionary, shifted, xform)

Arguments

data
a list of vectors containing discrete wavelet transform coefficients.
series
a numeric vector or signalSeries object representing the input series.
n.levels
an integer denoting the number of decomposition levels.
dictionary
an object of class wavDictionary representing the wavelet dictionary of the transform.
shifted
a logical value. If TRUE, it signifies that the transform coefficients have already been shifted for approximate zero phase alignment.
xform
a character string denoting the type of wavelet transform that has been performed. Typical values are "modwt" or "dwt".

Value

  • an object of class wavTransform.

concept

class constructorwavelet

Details

Used internally by the wavMODWT and wavDWT functions to package the transform contents into a list.

See Also

wavDWT, wavMODWT, wavDWPT, wavMODWPT, wavBoundary, wavSortCrystals, wavPacketIndices, wavShrink.

Examples

Run this code
## calculate a MODWT of the sunpots series and 
## verify the class 
W <- wavMODWT(sunspots)
print(class(W))

## summarize the object 
summary(W)

## reconstruct the MODWT of the sunspots series 
## and compare to the original 
sunup <- reconstruct(W)
vecnorm(sunup - sunspots)

Run the code above in your browser using DataLab