getgrid.gp: Calculates the gridpoints in a spectral GP object

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Calculates the sequence of gridpoints in each dimension for a spectral GP object. Gridpoints representing the part of the domain in which the periodicity of the GP emerges are omitted.

Usage

1
2
## S3 method for class 'gp'
getgrid(object,...)

Arguments

object

A GP object, created by gp.

...

Other arguments.

Details

Not meant to be used directly by the user, unless the user needs the unique gridpoints in each dimension. For the expanded grid that corresponds to the process values, with each row containing the two coordinates of a grid location, use expand.gpgrid.

Value

For two dimensions, a list containing the gridpoints in each dimension, with the first element containing the unique gridpoints in the first dimension and the second element the unique gridpoints in the second dimension, or for one-dimensional processes, a vector of gridpoints.

Author(s)

Christopher Paciorek paciorek@alumni.cmu.edu

References

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

See Also

gp, getgrid.gp, predict.gp, expand.gpgrid.gp

Examples

1
2
3
4
5
library(spectralGP)
gp1=gp(128,matern.specdens,c(1,4))
gp2=gp(c(64,64),matern.specdens,c(1,4))
grid1=getgrid(gp1)
grid2=getgrid(gp2)

spectralGP documentation built on May 2, 2019, 2:40 a.m.