simulate.gp {spectralGP} | R Documentation |
Simulates a process realization by drawing a random draw of coefficients from their prior distribution and updating the process values.
simulate.gp(object,...)
object |
A GP object, created by gp . |
... |
Other arguments. |
Modifies the coeff
and process
elements of the object.
The function modifies the GP object, which is essentially a pointer (an R environment in this case), so NULL is returned.
Christopher Paciorek paciorek@alumni.cmu.edu
Type 'citation("spectralGP")' for references.
gp
,zero.coeff.gp
,propose.coeff.gp
,updateprocess.gp
##---- Should be DIRECTLY executable !! ---- ##-- ==> Define data, use random, ##-- or do help(data=index) for the standard data sets. library(spectralGP) gp1=gp(128,matern.specdens,c(1,4)) gp2=gp(c(64,64),matern.specdens,c(1,4)) simulate(gp1) simulate(gp2) plot(gp1) plot(gp2)