bm_list {inlabru}R 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)

Functions

Examples

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

[Package inlabru version 2.13.0 Index]