putD.wd(wavethresh)
putD.wd()所属R语言包:wavethresh
Puts a whole resolution level of mother wavelet coeffients into wd wavelet object.
将一个整体的分辨率级别的母小波coeffients到WD小波对象。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Makes a copy of the wd object, replaces some mother wavelet coefficients data in the copy, and then returns the copy.
wd对象的副本,取代了母亲的小波系数在副本中的数据,然后返回副本。
用法----------Usage----------
## S3 method for class 'wd':
putD(wd, level, v, boundary=FALSE, index=FALSE, ...)
参数----------Arguments----------
参数:wd
Wavelet decomposition object into which you wish to insert the mother wavelet coefficients.
小波分解的对象,在其中您要插入的母亲小波系数。
参数:level
the resolution level at which you wish to replace the mother wavelet coefficients.
您要更换的母亲小波系数的分辨率级别。
参数:v
the replacement data, this should be of the correct length.
替换数据,这应该是正确的长度。
参数:boundary
If boundary is FALSE then only "real" data is replaced. If boundary is TRUE then the boundary (bookeeping) elements are replaced as well. Information about the lengths of the vectors can be found in the first.last database function and Nason and Silverman, 1994.
如果boundaryFALSE然后唯一的“真正”的数据被替换。如果边界是TRUE然后的边界(bookeeping)的元素替换掉。 first.last数据库函数和利晨和Silverman,1994中,可以找到有关的矢量的长度的信息。
参数:index
If index is TRUE then the index numbers into the 1D array where the coefficient insertion would take place are returned. If index is FALSE (default) then the modified wavelet decomposition object is returned.
如果指数是TRUE然后到一维数组中的索引号的系数插入需要的地方都回来了。如果指数是FALSE(默认值),然后修改后的wavelet decomposition对象,则返回。
参数:...
any other arguments
任何其他参数
Details
详细信息----------Details----------
The function accessD obtains the mother wavelet coefficients for a particular level. The function putD.wd replaces father wavelet coefficients at a particular resolution level and returns a modified wd object reflecting the change.
函数accessD得到母亲的小波系数为一个特定的水平。函数putD.wd取代父亲在一个特定的分辨率级别的小波系数,并返回修改后的WD物体反射的变化。
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 linear vector. PutD.wd obtains information about where the smoothed data appears from the fl.dbase component of an wd.object, in particular the array
此功能的必要性是Mallat的算法和实现作为一个线性矢量存储金字塔内存效率增益的金字塔结构的一个后果。 PutD.wd获得有关下列内容的信息的平滑化数据出现从fl.dbasewd.object,特别是阵列组件
fl.dbase$first.last.d
fl.dbase$first.last.d
which gives a complete specification of index numbers and offsets for
这给出了一个完整规范的索引号和偏移量
wd.object$D.
wd.object$D。
Note that this function is method for the generic function putD. When the wd.object is definitely a wd class object then you only need use the generic version of this function.
需要注意的是此功能的通用函数putD的方法。当wd.object绝对是一个WD类的对象,那么你只需要使用此功能的通用版本。
Note also that this function only puts information into wd class objects. To extract coefficients from a wd object you have to use the accessD function (or more precisely, the accessD.wd method).
还要注意的是此功能只把信息wd类对象。要提取系数从一个wd对象的你使用accessD函数(或者更确切地说,是accessD.wd方法)。
值----------Value----------
A wd class object containing the modified mother wavelet coefficients.
Awd类对象,它包含修改后的母小波系数。
RELEASE----------RELEASE----------
Version 3.5.3 Copyright Guy Nason 1994
版本3.5.3版权盖利晨1994年
(作者)----------Author(s)----------
G P Nason
参见----------See Also----------
putD, wd.object, wd, accessD,putD, first.last,
putD,wd.object,wd,accessD,putD,first.last,
实例----------Examples----------
#[]
# Generate an EMPTY wd object:[生成一个空的WD对象:]
#[]
zero <- rep(0, 16)
zerowd <- wd(zero)
#[]
# Put some random father wavelet coefficients into the object at[把一些随机的父亲小波系数的对象]
# resolution level 2. For the decimated wavelet transform there[分辨率级别2。对于抽取小波变换有]
# are always 2^i coefficients at resolution level i. So we have to[总是2 ^在分辨率i级系数。因此,我们必须]
# insert 4 coefficients[插入4个系数]
#[]
mod.zerowd <- putD( zerowd, level=2, v=rnorm(4))
#[]
# If you plot mod.zerowd you will see that there are only [如果您的图mod.zerowd你会看到有只]
# coefficients at resolution level 2 where you just put the coefficients.[分辨率为2级,你只要把系数系数。]
#[]
# Now, for a time-ordered non-decimated wavelet transform object the[现在,一时间排序的非抽取小波变换对象]
# procedure is exactly the same EXCEPT that there are going to be[程序是完全一样的,除了有将是]
# 16 coefficients at each resolution level. I.e.[在每个分辨率级别的16个系数。即]
#[]
# Create empty TIME-ORDERED NON-DECIMATED wavelet transform object[创建空的时间排序的非抽取小波变换对象]
#[]
zerowdS <- wd(zero, type="station")
#[]
# Now insert 16 random coefficients at resolution level 2[现在,插入16个随机系数的分辨率为2级]
#[]
mod.zerowdS <- putD(zerowdS, level=2, v=rnorm(16))
#[]
# Once more if you plot mod.zerowdS then there will only be[一旦更多的如果您绘制mod.zerowdS然后将只有]
# coefficients at resolution level 2.[分辨率为2级系数。]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|