This simulates spatial data from a mesh from a specified number of precision matrices. The number of precision matrices is specified by the length of the hyperparameter vectors, which must be equal.
1 2 3 4 5 6 7 8 9 10 | simFromMesh(
mesh,
size = 5000,
sp_type = "barrier",
hyperp1,
hyperp2,
barrier.triangles = NULL,
barrier.polygon = NULL,
seed = NULL
)
|
mesh |
The mesh to simulate from |
size |
the number of locations to sample |
sp_type |
whether spde or barrier type |
hyperp1 |
vector of kappas for spde, vector of ranges for barrier |
hyperp2 |
vector of taus for spde, vector of sigma_us for barrier |
barrier.triangles |
the triangles defining the barrier for the barrier model |
barrier.polygon |
the barrier polygon to avoid sampling on the barrier |
seed |
The seed for the random number generation |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.