cdtoimwd {LS2W} | R Documentation |
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)
Arguments
cddews |
A cddews object, which may be the output of |
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.
Value
An object of class imwd.
Author(s)
Sarah L Taylor
See Also
Examples
#
#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)
#
[Package LS2W version 1.3.6 Index]