Learn R Programming

spectralGP (version 1.3.3)

simulate.gp: 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"(object,...)

Arguments

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

Value

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

Details

Modifies the coeff and process elements of the object.

References

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

See Also

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

Examples

Run this code
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