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

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/cdtoimwd.R

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) 
#

LS2W documentation built on May 20, 2017, 4:45 a.m.

Search within the LS2W package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.