Learn R Programming

LS2W (version 1.3.6)

cdtoimwd: Convert a cddews type object to an imwd type object

Description

Converting from a cddews object to an imwd object required for simulating an LS2W process.

Usage

cdtoimwd(cddews)

Value

An object of class imwd.

Arguments

cddews

A cddews object, which may be the output of cddews.

Author

Sarah L Taylor

Details

Simulation of an LS2W process for Daubechies wavelets requires that our spectral structure is ordered as an imwd object rather than a cddews object. This function works by extracting the spectral information from the given cddews object, determining where in the (null) imwd object it should be and adding the power to this appropriate location. This function is used within the function LS2Wsim.cddews and as such does not need to be made use of directly by the user.

See Also

imwd, cddews, LS2Wsim.cddews

Examples

Run this code
#
#Obtain a cddews type object from an image X
#
X<-matrix(rnorm(32*32),nrow=32,ncol=32)
#
CDDEWS <- cddews(X,correct=FALSE,smooth=FALSE)
#
#Verify the class of Matxcddews
#
class(CDDEWS)
#
#Convert to imwd
#
CDDEWSimwd<-cdtoimwd(CDDEWS)
#
#Verify new class
#
class(CDDEWSimwd) 
#

Run the code above in your browser using DataLab