Learn R Programming

spectralGP (version 1.3.4)

Approximate Gaussian Processes Using the Fourier Basis

Description

Routines for creating, manipulating, and performing Bayesian inference about Gaussian processes in one and two dimensions using the Fourier basis approximation: simulation and plotting of processes, calculation of coefficient variances, calculation of process density, coefficient proposals (for use in MCMC). It uses R environments to store GP objects as references/pointers.

Copy Link

Version

Install

install.packages('spectralGP')

Monthly Downloads

160

Version

1.3.4

License

GPL (>= 2)

Maintainer

Christopher Paciorek

Last Published

February 5th, 2026

Functions in spectralGP (1.3.4)

matern.specdens

Matern correlation spectral density function
updateprocess.gp

Recalculate process values in a spectral GP object
print.gp

Spectral GP default print statement
names.gp

The names of the elements of a GP object
propose.coeff.gp

Proposes new coeffients in a spectral GP object.
rdist.earth

Great circle distance matrix
points.gp

Add points for a one-dimensional process based on a spectral GP object
lonlat2xy

Projects lon/lat coordinates to x/y Euclidean coordinate system
zero.coeff.gp

Sets coefficients to zero in a spectral GP object
logdensity.gp

Calculates log prior density of a spectral GP object
predict.gp

Prediction from a spectral GP object
spectralGP

spectralGP - tools for specifying Gaussian processes using the computationally efficient Fourier basis
spectralGP-generic

spectralGP generic functions
xy2unit

Scales locations to the unit hypercube for use in spectral GP
simulate.gp

Simulates a process realization from a spectral GP object
plot.gp

Plot a process based on a spectral GP object
new.mapping

Map arbitrary locations to gridpoints of spectral GP object
Gibbs.sample.coeff.gp

Samples new coeffients via Gibbs sampling in a spectral GP object.
image_plot

Draws image plot with a legend strip for the color scale.
copy.gp

Copy a spectral GP object.
gp

Create a new GP object
calc.variances.gp

Calculates prior variances of coefficients in a spectral GP object
is.gp

Test if object is a spectral GP
lines.gp

Add a line plot for a one-dimensional process based on a spectral GP object
expand.gpgrid.gp

Calculate grid locations for a spectral GP object.
Hastings.coeff.gp

Calculates Hastings value of coefficients
add.blocks.gp

Adds coefficient block structure to a spectral GP object
change.param.gp

Changes correlation function parameter values of a spectral GP object
getgrid.gp

Calculates the gridpoints in a spectral GP object