bm_list: Methods for mapper lists

bm_listR Documentation

Methods for mapper lists

Description

bru_mapper lists can be combined into bm_list lists.

Usage

as_bm_list(x)

## S3 method for class 'list'
as_bm_list(x)

## S3 method for class 'bm_list'
as_bm_list(x)

## S3 method for class 'bru_comp_list'
as_bm_list(x)

## S3 method for class 'bru_mapper'
c(...)

## S3 method for class 'bm_list'
c(...)

## S3 method for class 'bm_list'
x[i]

## S3 method for class 'bm_list'
ibm_linear(mapper, input, state = NULL, ...)

## S3 method for class 'bm_list'
ibm_simplify(mapper, input = NULL, state = NULL, ...)

Arguments

x

bm_list object from which to extract element(s)

...

Objects to be combined.

i

indices specifying elements to extract

mapper

A mapper S3 object, inheriting from bru_mapper.

input

Data input for the mapper.

state

A vector of latent state values for the mapping, of length ibm_n(mapper, inla_f = FALSE)

Value

A bm_list object

Methods (by generic)

  • c(bm_list): The ... arguments should be bm_list objects.

  • [: Extract sub-list

Functions

  • c(bru_mapper): The ... arguments should be bru_mapper objects.

Examples

m <- c(A = bm_const(), B = bm_scale())
str(m)
str(m[2])

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