Skip to Content

expand.gpgrid.gp {spectralGP}

Calculate grid locations for a spectral GP object.
Package: 
spectralGP
Version: 
1.3.1

Description

This is a version of expand.grid that calculates the grid locations for a spectral GP object. Gridpoints representing the part of the domain in which the periodicity of the GP emerges are omitted.

Usage

 
## S3 method for class 'gp':
expand.gpgrid((object,...))

Arguments

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

Details

Note that this function is not named expand.grid.gp because expand.grid is a function, and not an S3 method.

Values

A matrix of grid locations with the first column the x-dimension and the second the y-dimension, or for one dimensional processes, a vector of grid locations.

References

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

See Also

gp, getgrid.gp, predict.gp

Examples

library(spectralGP)
gp1=gp(128,matern.specdens,c(1,4))
gp2=gp(c(64,64),matern.specdens,c(1,4))
grid1=expand.gpgrid(gp1)
grid2=expand.gpgrid(gp2)
plot(grid2)

Author(s)

Christopher Paciorek paciorek@alumni.cmu.edu

Documentation reproduced from package spectralGP, version 1.3.1. License: GPL (>= 2)