simulate.gp {spectralGP}R Documentation

Simulates a process realization from a spectral GP object

Description

Simulates a process realization by drawing a random draw of coefficients from their prior distribution and updating the process values.

Usage

simulate.gp(object,...)

Arguments

object A GP object, created by gp.
... Other arguments.

Details

Modifies the coeff and process elements of the object.

Value

The function modifies the GP object, which is essentially a pointer (an R environment in this case), so NULL is returned.

Author(s)

Christopher Paciorek paciorek@alumni.cmu.edu

References

Type 'citation("spectralGP")' for references.

See Also

gp,zero.coeff.gp,propose.coeff.gp,updateprocess.gp

Examples

##---- 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)

[Package spectralGP version 1.1 Index]