bm_fm_mesh_1d: Mapper for 'fm_mesh_1d'

bru_mapper.fm_mesh_1dR Documentation

Mapper for fm_mesh_1d

Description

Create mapper for an fm_mesh_1d object

Usage

## S3 method for class 'fm_mesh_1d'
bru_mapper(mesh, indexed = TRUE, ...)

## S3 method for class 'bm_fm_mesh_1d'
ibm_n(mapper, ...)

## S3 method for class 'bm_fm_mesh_1d'
ibm_values(mapper, ...)

## S3 method for class 'bm_fm_mesh_1d'
ibm_jacobian(mapper, input, ...)

## S3 method for class 'bm_inla_mesh_1d'
ibm_n(mapper, ...)

## S3 method for class 'bm_inla_mesh_1d'
ibm_values(mapper, ...)

## S3 method for class 'bm_inla_mesh_1d'
ibm_jacobian(mapper, input, ...)

Arguments

mesh

An fm_mesh_1d object to use as a mapper

indexed

logical; If TRUE (default), the ibm_values() output will be the integer indexing sequence for the latent variables (needed for spde models). If FALSE, points representative of the basis centres are returned (useful for an interpolator for rw2 models and similar, for fmesher versions ⁠>= 0.3.0.9002⁠).

...

Arguments passed on to other methods

mapper

A mapper S3 object, inheriting from bru_mapper.

input

Data input for the mapper.

Value

A bm_fm_mesh_1d or bm_fmesher object. The the general bm_fmesher() mapper handles all indexed fmesher objects.

See Also

bru_mapper, bru_mapper_generics

Other mappers: bm_aggregate(), bm_collect(), bm_const(), bm_factor(), bm_fmesher(), bm_harmonics(), bm_index(), bm_linear(), bm_logsumexp(), bm_marginal(), bm_matrix(), bm_mesh_B(), bm_multi(), bm_pipe(), bm_repeat(), bm_scale(), bm_shift(), bm_sum(), bm_taylor(), bru_get_mapper(), bru_mapper(), bru_mapper.fm_mesh_2d(), bru_mapper_generics

Examples

m <- bru_mapper(fm_mesh_1d(c(1:3, 5, 7)))
ibm_values(m)
ibm_eval(m, 1:7, 1:5)

m <- bru_mapper(fm_mesh_1d(c(1:3, 5, 7)), indexed = FALSE)
ibm_values(m)
ibm_eval(m, 1:7, 1:5)

m <- bru_mapper(
  fm_mesh_1d(c(1:3, 5, 7), degree = 2, boundary = "free"),
  indexed = FALSE
)
ibm_values(m)
ibm_eval(m, 1:7, 1:6)

inlabru-org/inlabru documentation built on July 17, 2025, 2:11 a.m.