putC.wd(wavethresh)
putC.wd()所属R语言包:wavethresh
Puts a whole resolution level of father wavelet coeffients into wd wavelet object.
将一个整体的分辨率级别的父亲小波coeffients到WD小波对象。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Makes a copy of the wd object, replaces some father wavelet coefficients data in the copy, and then returns the copy.
wd对象的副本,取代了一些父亲的小波系数数据在副本中,然后返回副本。
用法----------Usage----------
## S3 method for class 'wd':
putC(wd, level, v, boundary=FALSE, index=FALSE, ...)
参数----------Arguments----------
参数:wd
Wavelet decomposition object into which you wish to insert the father wavelet coefficients.
小波分解的对象,在其中您要插入的父亲小波系数。
参数:level
the resolution level at which you wish to replace the father 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 accessC obtains the father wavelet coefficients for a particular level. The function putC.wd replaces father wavelet coefficients at a particular resolution level and returns a modified wd object reflecting the change.
的功能accessC得到父亲的小波系数为某一特定水平。函数putC.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. PutC.wd obtains information about where the smoothed data appears from the fl.dbase component of an wd.object, in particular the array
此功能的必要性是Mallat的算法和实现作为一个线性矢量存储金字塔内存效率增益的金字塔结构的一个后果。 PutC.wd获得有关下列内容的信息的平滑化数据出现从fl.dbasewd.object,特别是阵列组件
fl.dbase$first.last.c
fl.dbase$first.last.c
which gives a complete specification of index numbers and offsets for
这给出了一个完整规范的索引号和偏移量
wd.object$C.
wd.object$C。
Note that this function is method for the generic function putC. When the wd.object is definitely a wd class object then you only need use the generic version of this function.
需要注意的是此功能的通用函数putC的方法。当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 accessC function (or more precisely, the accessC.wd method).
还要注意的是此功能只把信息wd类对象。要提取系数从一个wd对象的你使用accessC函数(或者更确切地说,是accessC.wd方法)。
值----------Value----------
A wd class object containing the modified father wavelet coefficients.
Awd类对象,它包含修改后的父亲小波系数。
RELEASE----------RELEASE----------
Version 3.5.3 Copyright Guy Nason 1994
版本3.5.3版权盖利晨1994年
(作者)----------Author(s)----------
G P Nason
参见----------See Also----------
putC, wd.object, wd, accessC,putD, first.last,
putC,wd.object,wd,accessC,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 <- putC( zerowd, level=2, v=rnorm(4))
#[]
# If you use accessC on mod.zerowd you would see that there were only[如果您使用accessC的上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 <- putC(zerowdS, level=2, v=rnorm(16))
#[]
# Once more if you use accessC on mod.zerowdS you will see that there are[一旦更多的如果你使用accessC的的mod.zerowdS上会看到有]
# only coefficients at resolution level 2.[只有分辨率为2级的系数。]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|