Learn R Programming

inlabru (version 2.8.0)

fm_int_inla_mesh: Subset integration on a mesh

Description

Integration methods for spatial samplers on inla.mesh meshes.

Usage

fm_int_inla_mesh(samplers, domain, name = NULL, int.args = NULL, ...)

fm_int_inla_mesh_NULL(samplers, domain, name = NULL, int.args = NULL, ...)

# S3 method for sf fm_int_inla_mesh(samplers, domain, name = NULL, int.args = NULL, ...)

# S3 method for sfc_POINT fm_int_inla_mesh( samplers, domain, name = NULL, int.args = NULL, .weight = rep(1, NROW(samplers)), ... )

# S3 method for sfc_MULTIPOINT fm_int_inla_mesh( samplers, domain, name = NULL, int.args = NULL, .weight = rep(1, NROW(samplers)), ... )

# S3 method for sfc_LINESTRING fm_int_inla_mesh( samplers, domain, name = NULL, int.args = NULL, .weight = rep(1, NROW(samplers)), ... )

# S3 method for sfc_MULTILINESTRING fm_int_inla_mesh( samplers, domain, name = NULL, int.args = NULL, .weight = rep(1, NROW(samplers)), ... )

# S3 method for sfc_POLYGON fm_int_inla_mesh( samplers, domain, name = NULL, int.args = NULL, .weight = rep(1, NROW(samplers)), ... )

# S3 method for sfc_MULTIPOLYGON fm_int_inla_mesh( samplers, domain, name = NULL, int.args = NULL, .weight = rep(1, NROW(samplers)), ... )

# S3 method for sfc_GEOMETRY fm_int_inla_mesh( samplers, domain, name = NULL, int.args = NULL, .weight = rep(1, NROW(samplers)), ... )

# S3 method for Spatial fm_int_inla_mesh( samplers, domain, name = NULL, int.args = NULL, format = NULL, ... )

Value

An sf point object with columns weight and .block

Arguments

samplers

For single domain fm_int methods, an object specifying one or more subsets of the domain, and optional weighting in a weight variable. For fm_int.list, a list of sampling definitions, where data frame elements may contain information for multiple domains, in which case each row represent a separate tensor product integration subspace.

domain

Functional space specification; single domain or a named list of domains

name

For single-domain methods, the variable name to use for the integration points. Default 'x'

int.args

List of arguments passed to line and integration methods.

  • method: "stable" (to aggregate integration weights onto mesh nodes) or "direct" (to construct a within triangle/segment integration scheme without aggregating onto mesh nodes)

  • nsub1, nsub2: integers controlling the number of internal integration points before aggregation. Points per triangle: (nsub2+1)^2. Points per knot segment: nsub1

...

Additional arguments passed on to other methods

.weight

Optional weight vector for sfc_* integration

format

character; determines the output format, as either "sf" (default when the sampler is NULL) or "sp". When NULL, determined by the sampler type.

.block

Optional block grouping vector for sfc_* integration

Methods (by class)

  • fm_int_inla_mesh(sf): sf integration

  • fm_int_inla_mesh(sfc_POINT): sfc_POINT integration

  • fm_int_inla_mesh(sfc_MULTIPOINT): sfc_MULTIPOINT integration

  • fm_int_inla_mesh(sfc_LINESTRING): sfc_LINESTRING integration

  • fm_int_inla_mesh(sfc_MULTILINESTRING): sfc_MULTILINESTRING integration

  • fm_int_inla_mesh(sfc_POLYGON): sfc_POLYGON integration

  • fm_int_inla_mesh(sfc_MULTIPOLYGON): sfc_MULTIPOLYGON integration

  • fm_int_inla_mesh(sfc_GEOMETRY): sfc_GEOMERY integration

  • fm_int_inla_mesh(Spatial): Spatial integration

Functions

  • fm_int_inla_mesh_NULL(): Full domain integration