accessD.wd3D(wavethresh)
accessD.wd3D()所属R语言包:wavethresh
Get wavelet coefficients from 3D wavelet object
小波系数的三维小波对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function extracts and returns arrays of wavelet coefficients, corresponding to a particular resolution level, from a wd wavelet decomposition object.
此功能提取并返回的小波系数的阵列,对应于一个特定的分辨率等级,从wd小波分解对象。
The pyramid of coefficients in a wavelet decomposition (returned from the wd3D function, say) are packed into a single array in WaveThresh3.
打包成一个单一的阵列中wd3D的金字塔小波分解的系数(从WaveThresh3函数返回,说了)。
用法----------Usage----------
## S3 method for class 'wd3D':
accessD(obj, level = nlevels(obj)-1, block, ...)
参数----------Arguments----------
参数:obj
3D Wavelet decomposition object from which you wish to extract the wavelet coefficients.
三维小波分解的对象,该对象要提取的小波系数。
参数:level
The resolution level at which you wish to extract coefficients. The minimum level you can enter is 0, the largest is one less than the number of nlevels stored in the obj object.
你想提取系数的分辨率级别。的最低水平,你可以输入为0,最大的是NLEVELS存储在obj对象的数量小于1。
参数:block
if block is missing then a list containing all of the wavelet coefficient blocks GGG, GGH, GHG, GHH, HGG, HGH, HHG (and HHH, if level=0) is returned. Otherwise block should be one of the character strings GGG, GGH, GHG, GHH, HGG, HGH, HHG and then only that sub-block is returned from the resolution level specified.
如果块丢失,则一个列表,其中包含所有的小波系数块GGG,GGH,温室气体,GHH,HGG HGH,HHG(HHH,如果水平= 0)将返回。否则,块应该是之一的字符串GGG,GGH,温室气体,GHH,HGG,HGH,HHG,然后只返回指定的分辨率级别,分块。
参数:...
any other arguments
任何其他参数
Details
详细信息----------Details----------
The need for this function is a consequence of the pyramidal structure of Mallat's algorithm and the memory efficiency gain achieved by storing the pyramid as a array.
需要此功能的Mallat的算法和存储效率获得一个数组存储金字塔的金字塔结构的结果。
Note that this functiOn is a method for the generic function accessD.
请注意,这个函数是一个方法的通用函数accessD。
值----------Value----------
If the block is missing then a list is returned containing all the sub-blocks of coefficients for the specificed resolution level.
如果块丢失,则返回一个数组包含所有的子块的系数中的指定的分辨率level。
Otherwise the block character string specifies which sub-block of coefficients to return.
否则,块字符串指定返回子块的系数。
RELEASE----------RELEASE----------
Version 3.9.6 Copyright Guy Nason 1997
版本3.9.6版权所有1997年盖利晨
(作者)----------Author(s)----------
G P Nason
参见----------See Also----------
link{accessD}, link{print.wd3D}, link{putD.wd3D}, link{putDwd3Dcheck}, link{summary.wd3D}, link{threshold.wd3D}, link{wd3D}, link{wd3D object}, link{wr3D}.
link{accessD},link{print.wd3D},link{putD.wd3D},link{putDwd3Dcheck},link{summary.wd3D},link{threshold.wd3D},link{wd3D},link{wd3D object},link{wr3D}。
实例----------Examples----------
#[]
# Generate some test data[生成一些测试数据。]
#[]
a <- array(rnorm(8*8*8), dim=c(8,8,8))
#[]
# Perform the 3D DWT[执行3D DWT]
#[]
awd3D <- wd3D(a)
#[]
# How many levels does this object have?[这个对象有多少级?]
#[]
nlevels(awd3D)
# [1] 3[[1] 3]
#[]
# So conceivably we could access levels 0, 1 or 2.[因此,可以想象,我们可以访问级别0,1或2。]
#[]
# Ok. Let's get the level 1 HGH sub-block coefficients:[好吧。让我们的1级HGH子块系数:]
#[]
accessD(awd3D, level=1, block="HGH")
#[]
#, , 1[,,1]
# [,1] [,2] [[1] [2]]
#[1,] 0.8359289 1.3596832[[1,] 0.8359289 1.3596832]
#[2,] -0.1771688 0.2987303[[2,] -0.1771688 0.2987303]
#[]
#, , 2[,,2]
# [,1] [,2] [[1] [2]]
#[1,] -1.2633313 1.00221652[[1,] -1.2633313 1.00221652]
#[2,] -0.3004413 0.04728019[[2,] -0.3004413 0.04728019]
#[]
# This was a 3D array of dimension size 2 (8 -> 4 -> 2, level 3, 2 and then 1)[这是一个三维数组的尺寸大小为2(8 - > 4 - > 2,3级,2和1)]
#[]
#[]
# Let's do the same call except this time don't specify the block arg.[让我们做相同的呼叫,但这个时候不指定块的精氨酸。]
#[]
alllev1 <- accessD(awd3D, level=1)
#[]
# This new object should be a list containing all the subblocks at this level.[这个新的对象应该是一个列表,其中包含在这个级别的所有子块。]
# What are the components?[由哪些部分组成?]
#[]
names(alllev1)
#[1] "GHH" "HGH" "GGH" "HHG" "GHG" "HGG" "GGG"[[1]“GHH”,“HGH”,“GGH”,“高次谐波”,“温室气体”,“HGG”,“GGG”]
#[]
# O.k. Let's look at HGH again[好吧。让我们来看看在HGH]
#[]
alllev1$HGH
#[]
#, , 1[,,1]
# [,1] [,2] [[1] [2]]
#[1,] 0.8359289 1.3596832[[1,] 0.8359289 1.3596832]
#[2,] -0.1771688 0.2987303[[2,] -0.1771688 0.2987303]
#[]
#, , 2[,,2]
# [,1] [,2] [[1] [2]]
#[1,] -1.2633313 1.00221652[[1,] -1.2633313 1.00221652]
#[2,] -0.3004413 0.04728019[[2,] -0.3004413 0.04728019]
#[]
# Same as before.[和以前一样。]
#[]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|