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

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

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

                                        Changes correlation function parameter values of a spectral GP object
                                         更改相关功能参数值的光谱GP对象

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

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

Changes the correlation parameter values or the (optional) variance parameter and  recalculates the prior variances of the coefficients using calc.variances.gp.
变化的相关参数值或方差参数(可选),并重新计算之前使用calc.variances.gp系数的差异。


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


## S3 method for class 'gp':
change.param(object,new.specdens.param=NULL,
  new.variance.param=NULL,...)



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

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


参数:new.specdens.param
A vector of new parameter values, matching the length of the original parameter vector.
新的参数值的矢量,匹配原始参数矢量的长度。


参数:new.variance.param
The new variance parameter value.
新的变异的参数值。


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


Details

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

This function allows the user to change the parameter values of the spectral GP object and recalculate the prior variances for the coefficients.  This is particularly useful for implementing MCMC with the spectral GP.
此功能允许用户更改的参数值的光谱GP对象和重新计算前的系数的差异。这是一个特别有用的实施MCMC与光谱GP。


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

The function modifies the GP object, which is essentially a pointer
功能修改GP对象,它本质上是一个指针


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


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



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

<h3>See Also</h3>

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


library(spectralGP)
rho=1
gp1=gp(128,matern.specdens,c(rho,4))
gp2=gp(c(64,64),matern.specdens,c(rho,4),0.5)
propose.coeff(gp1)
propose.coeff(gp2)
print(logdensity(gp1))
print(logdensity(gp2))
rho=2
sigma=2.5
change.param(gp1,c(rho,4)) # change parameter values of correlation function[改变参数值的相关函数]
change.param(gp2,c(rho,4),sigma)
print(logdensity(gp1))
print(logdensity(gp2))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-18 06:20 , Processed in 0.026940 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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