View source: R/spde_covariance.R
spde_covariance | R Documentation |
Computes the covariance function for a Whittle-Matérn field.
spde_covariance(P, kappa, tau, range, sigma, alpha, graph, directional = F)
P |
Location (edge number and normalized location on the edge) for the location to evaluate the covariance function at. |
kappa |
Parameter kappa from the SPDE. |
tau |
Parameter tau from the SPDE. |
range |
Range parameter. |
sigma |
Standard deviation parameter. |
alpha |
Smoothness parameter (1 or 2). |
graph |
A |
directional |
bool is the model a directional or not. directional only works for alpha=1 |
Compute the covariance function \rho(P,s_i)
where
P is the provided location and s_i
are all locations in the mesh
of the graph.
Vector with the covariance function evaluate at the mesh locations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.