Convert a cddews type object to an imwd type object

Share:

Description

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

Usage

1

Arguments

cddews

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

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

imwd, cddews, LS2Wsim.cddews

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#
#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) 
#

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.