folded.matern.covariance.1d {rSPDE} | R Documentation |
The 1d folded Matern covariance function
Description
folded.matern.covariance.1d
evaluates the 1d
folded Matern covariance function over an interval .
Usage
folded.matern.covariance.1d(
h,
m,
kappa,
nu,
sigma,
L = 1,
N = 10,
boundary = c("neumann", "dirichlet", "periodic")
)
Arguments
h , m |
Vectors of arguments of the covariance function. |
kappa |
Range parameter. |
nu |
Shape parameter. |
sigma |
Standard deviation. |
L |
The upper bound of the interval |
N |
The truncation parameter. |
boundary |
The boundary condition. The possible conditions
are |
Details
folded.matern.covariance.1d
evaluates the 1d folded Matern
covariance function over an interval under different
boundary conditions. For periodic boundary conditions
for Neumann boundary conditions
and for Dirichlet boundary conditions:
where is the Matern covariance function:
We consider the truncation:
and
Value
A matrix with the corresponding covariance values.
Examples
x <- seq(from = 0, to = 1, length.out = 101)
plot(x, folded.matern.covariance.1d(rep(0.5, length(x)), x,
kappa = 10, nu = 1 / 5, sigma = 1),
type = "l", ylab = "C(h)", xlab = "h"
)
[Package rSPDE version 2.3.3 Index]