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

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

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

                                        Prediction from a spectral GP object
                                         预测从光谱GP对象

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

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

Produces the process values of a spectral GP object on the defined grid or predicts process values for a new set of inputs (domain points).
产生的光谱GP对象的过程值的定义的网格上,或预测为一组新的输入(域点)的过程值。


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


## S3 method for class 'gp':
predict(object,newdata=NULL,mapping=NULL,...)



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

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


参数:newdata
An optional two-column matrix-like object (vector for one-dimensional data) of locations of interest, for which the first column is the first coordinate and the second column the second coordinate.  Locations should lie in (0,1)^d, as the process representation is on a grid on (0,1)^d.
一个可选的两列的矩阵状的感兴趣的位置的对象(矢量为一维数据),其中第一列的第一坐标和所述第二列的第二坐标。位置应位于(0,1)^d的过程表示在网格(0,1)^d。


参数:mapping
Optional output of new.mapping, which creates a vector of indices mapping the prediction locations to their nearest gridpoints.
可选的输出new.mapping,它创建了一个向量映射的预测位置,离他们最近的网格点的指数。


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


Details

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

Does prediction for a spectral GP, either at the gridpoints or for locations by associating locations with the nearest gridpoint, depending on the arguments supplied.  If newdata and mapping are both NULL, then prediction is done on the grid.  If only newdata is supplied, the mapping is done using new.mapping and then the prediction is done.  If mapping is supplied (this should be done for computational efficiency if prediction at the same locations will be done repeatedly) then the mapping is used directly to calculate the predictions.
预测为的光谱GP,在格点或位置是否通过相关联的位置与最近的格点,根据提供的参数。如果newdata和mapping都是NULL,然后预测是对电网。如果只newdata提供,映射是使用new.mapping“,然后进行预测。如果mapping(应该是这样的计算效率,如果在同一地点重复进行预测),则映射直接用于计算预测。


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

A vector of process values (matrix for two-dimensional processes in which prediction on the grid is requested).
过程值的向量(矩阵二维的进程,在该进程中,在网格上的预测请求)。


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


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



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

<h3>See Also</h3>

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


library(spectralGP)
gp1=gp(128,matern.specdens,c(1,4))
gp2=gp(c(64,64),matern.specdens,c(1,4))
simulate(gp1)
simulate(gp2)
gridvals=predict(gp1)
gridvals2=predict(gp2)

loc1=runif(100)
loc2=cbind(runif(100),runif(100,0,1))
map1=new.mapping(gp1,loc1)
map2=new.mapping(gp2,loc2)
vals1=predict(gp1,mapping=map1)
vals2=predict(gp2,mapping=map2)
#equivalently:[等价:]
vals1=predict(gp1,loc1)
vals2=predict(gp2,loc2)
plot(gp1)
points(loc1,vals1)


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-18 06:11 , Processed in 0.024262 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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