Computes the covariance function for a Whittle-Matérn field.
spde_covariance(P, kappa, tau, range, sigma, alpha, graph, directional = F)
Vector with the covariance function evaluate at the mesh locations.
Location (edge number and normalized location on the edge) for the location to evaluate the covariance function at.
Parameter kappa from the SPDE.
Parameter tau from the SPDE.
Range parameter.
Standard deviation parameter.
Smoothness parameter (1 or 2).
A metric_graph
object.
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.