找回密码
 注册
查看: 318|回复: 0

R语言 spectralGP包 propose.coeff.gp()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 14:54:00 | 显示全部楼层 |阅读模式
propose.coeff.gp(spectralGP)
propose.coeff.gp()所属R语言包:spectralGP

                                        Proposes new coeffients in a spectral GP object.
                                         提出了新的coeffients在光谱GP对象。

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Proposes new coefficients in a spectral GP object as normal deviates centered around the current values, with the proposal standard deviation the product of the supplied standard deviation(s) and the square root of the prior variances.  The proposal can be done for all coefficients at once (block=0) or for individual blocks.
提出了新的在光谱GP对象围绕的电流值,与建议的标准偏差作为正常偏离系数的产品所提供的标准偏差(s)和现有的方差的平方根。建议可以做所有的系数在(block=0)或单个块。


用法----------Usage----------


## S3 method for class 'gp':
propose.coeff(object, block = 0, proposal.sd = 1,...)



参数----------Arguments----------

参数:object
A GP object, created by gp.
一个GP对象,创建的gp。


参数:block
The block of coefficients to be proposed, or 0 if all coefficients are to be proposed.
提出系数块,或0如果所有的参数都被提出。


参数:proposal.sd
Proposal standard deviation. This is multiplied by the square root of the prior variance for each coefficient to produce the final proposal standard deviation.
建议标准差。这是乘以各系数,以产生最后的建议标准偏差先验方差的平方根。


参数:...
Other arguments.
其他参数。


Details

详细信息----------Details----------

This function can be used to simulate a GP by using proposal.sd=1 to sample coefficients, coeff, from the prior or in a MCMC context to propose new coefficient values via the Metropolis algorithm.  The function automatically updates the process values in the process component of the gp list based on the new coefficient values.
使用这个功能可以被用来模拟一个GP proposal.sd=1采样系数,coeff,从之前或在MCMC的情况下,通过Metropolis算法提出新的系数值。该功能自动更新process组件的新的系数的值的基础上的gp列表的过程中的值。


值----------Value----------

The function modifies the GP object, which is essentially a pointer (an R environment in this case), so NULL is returned.
函数修改的GP对象,这基本上是一个指针(在这种情况下的R环境),所以返回NULL。


(作者)----------Author(s)----------


Christopher Paciorek <a href="mailto:paciorek@alumni.cmu.edu">paciorek@alumni.cmu.edu</a>



参考文献----------References----------

<h3>See Also</h3>  <code>gp</code>, <code>calc.variances.gp</code>, <code>simulate.gp</code>, <code>updateprocess.gp</code>,

实例----------Examples----------


library(spectralGP)
rho=1
gp1=gp(128,matern.specdens,c(rho,4))
gp2=gp(c(64,64),matern.specdens,c(rho,4))
propose.coeff(gp1)
propose.coeff(gp2)
plot(gp1)
plot(gp2)
prior1=logdensity(gp1)
prior2=logdensity(gp2)
add.blocks(gp1)
add.blocks(gp2)
propose.coeff(gp1,block=2,proposal.sd=0.1)
propose.coeff(gp2,block=3,proposal.sd=0.1)
priorstar1=logdensity(gp1)
priorstar2=logdensity(gp2)
plot(gp1)
plot(gp2)

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-18 07:47 , Processed in 0.022948 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表