powered by
Simulates a process realization by drawing a random draw of coefficients from their prior distribution and updating the process values.
# S3 method for gp simulate(object,...)
The function modifies the GP object, which is essentially a pointer (an R environment in this case), so NULL is returned.
A GP object, created by gp.
gp
Other arguments.
Christopher Paciorek paciorek@alumni.cmu.edu
Modifies the coeff and process elements of the object.
coeff
process
Type 'citation("spectralGP")' for references.
gp, zero.coeff.gp, propose.coeff.gp, updateprocess.gp
zero.coeff.gp
propose.coeff.gp
updateprocess.gp
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)
Run the code above in your browser using DataLab