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

1
2
## S3 method for class 'gp'
simulate(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

1
2
3
4
5
6
7
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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.