Learn R Programming

spectralGP (version 1.3.4)

updateprocess.gp: Recalculate process values in a spectral GP object

Description

Calculates the process values in a spectral GP object based on the current coefficient values. The process values are calculated by multiplying the coefficient values by the basis matrix, which is done by the inverse FFT.

Usage

# S3 method for gp
updateprocess(object,...)

Value

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

Arguments

object

A GP object, created by gp.

...

Other arguments.

Author

Christopher Paciorek paciorek@alumni.cmu.edu

Details

Modifies the process values of the object.

References

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

See Also

gp, propose.coeff.gp, simulate.gp, zero.coeff.gp

Examples

Run this code
library(spectralGP)
gp1=gp(128,matern.specdens,c(1,4))
propose.coeff(gp1)
gp1$coeff[1,1]=0
updateprocess(gp1)

Run the code above in your browser using DataLab