Description Usage Arguments Value
View source: R/BasicFunctions.R
Creates a 2D mesh with the inla.mesh.2d function with an inner and an outer domain with different triangle density. The outer is defined as a larger nonconvex hull of the rectangleCenters while the inner is defined based on a slightly expanded counting domain
1 2 3 4 5 6 7 8 9 10 11 | IndepMeshCreation(
rectangleCentersX,
rectangleCentersY,
countingDomainExpanded,
convHullVar.convex = -0.15,
convHullVar.concave = convHullVar.convex,
convHullVar.resolution = c(120, 120),
meshVar.max.edge = c(1, 10),
meshVar.offset = c(6, 6),
meshVar.cutoff = 0.3
)
|
rectangleCentersX |
Vector with X-coordinate of the centerpoint of each of the obligatory rectangles |
rectangleCentersY |
Vector with X-coordinate of the centerpoint of each of the obligatory rectangles |
convHullVar.convex |
convex parameter of inla.nonvonvex.hull. See ?inla.nonconvex.hull for details |
convHullVar.concave |
concave parameter of inla.nonvonvex.hull. See ?inla.nonconvex.hull for details |
convHullVar.resolution |
resolution parameter of inla.nonvonvex.hull. See ?inla.nonconvex.hull for details |
meshVar.max.edge |
max.edge parameter of inla.mesh.2d. Smaller values gives smaller triangles outside triangles. See ?inla.mesh.2d for details |
meshVar.offset |
offset parameter of inla.mesh.2d. See ?inla.mesh.2d for details |
meshVar.cutoff |
cutoff parameter of inla.mesh.2d. See ?inla.mesh.2d for details |
rectangleWidth |
Vector with the width of each of the obligatory rectangles |
rectangleHeight |
Vector with the height of each of the obligatory rectanglges |
An INLA mesh object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.