Description Usage Arguments Value References Examples
This function returns a realization of a user-specific gaussian process. This function is based on the fact that a gaussian process is fully specified by a mean function and a covariance matrix.
1 2 3 4 5 |
locs |
If |
n |
Number of locations. At |
p |
Dimension of domain |
meanmodel |
If |
meanparms |
A numerical vector with mean parameters. It must be compatible with the argument |
covmodel |
If |
covparms |
A numerical vector with covariance parameters. It must be compatible with the argument |
pivot |
Logical indicating if pivoting is to be used when factorizing a covariance matrix. At |
correction |
An argument specifying a correction method for the cholesky factorization of a covariance matrix. At |
tol |
Numerical tolerance. At |
seed |
An integer specifying whether and how the random number generator should be initialized. The default, |
simulate_gp
returns
seed
: The random seed
n
: The number of locations
p
: The dimension of domain [0,1]^p
locs
: The location matrix with n
rows and p
columns. Each row of locs
gives a point in [0, 1]^p
meanvec
: The mean vector induced by meanmodel
covmat
: The covariance matrix induced by covmodel
y
: A n
-dimensional vector of the user-specific gaussian process generated at locs
Fang, Haw-ren, and Dianne P. O’leary. "Modified Cholesky algorithms: a catalog with new approaches." Mathematical Programming 115.2 (2008): 319-349.
1 2 | out <- simulate_gp(locs = NULL, n = 5^2, p = 2)
out$y # a realization of the gaussian process with a mean rep(0, n) and a covariance diag(1, n)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.