Skip to contents

Create a an indexing mapper

Usage

bru_mapper_index(n = 1L, ...)

# S3 method for class 'bru_mapper_index'
ibm_invalid_output(mapper, input, state, ...)

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

Arguments

n

Size of a model for bru_mapper_index

...

Arguments passed on to other methods

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)

Examples

m <- bru_mapper_index(4)
ibm_eval(m, -2:6, 1:4)
#> [1] 0 0 0 1 2 3 4 0 0