fm_assess: Interactive mesh building and diagnostics

View source: R/mesh_assessment.R

fm_assessR Documentation

Interactive mesh building and diagnostics

Description

Assess the finite element approximation errors in a mesh for interactive R sessions.

Usage

fm_assess(mesh, spatial.range, alpha = 2, dims = NULL)

Arguments

mesh

An fm_mesh_2d object

spatial.range

numeric; the spatial range parameter to use for the assessment

alpha

numeric; A valid fm_matern_precision() alpha parameter

dims

2-numeric; the grid size

Value

An sf object with gridded mesh assessment information

Author(s)

Finn Lindgren finn.lindgren@gmail.com

See Also

fm_mesh_2d(), fm_rcdt_2d

Examples


bnd <- fm_segm(cbind(
  c(0, 10, 10, 0, 0),
  c(0, 0, 10, 10, 0)
), is.bnd = TRUE)
mesh <- fm_rcdt_2d_inla(boundary = bnd, max.edge = 1)
out <- fm_assess(mesh, spatial.range = 3, alpha = 2)


fmesher documentation built on April 3, 2025, 7:45 p.m.