This creates the precision matrix from a mesh created by R-INLA with a specified range. This is currently set up to support the standard spde approach of precision matrices and the barrier model version. Similar in purpose to .sp_covar.
.Q(
mesh,
barrier.triangles,
range = 50,
range_fraction = 0.2,
sigma_u = 1,
model = "spde"
)
Q a sparse precision matrix of type dgTMatrix
The mesh created by R-INLA representing spatial area
the list of triangles of the mesh in the barrier, only used for barrier model
decorrelation range
the fraction that sets the range over the "land" parts of the barrier model. Only used with the barrier model
the overall variance of the spatial process
'spde' for the SPDE approach, 'barrier' for barrier approach