Skip to contents

Create a constant mapper

Usage

bru_mapper_const()

# S3 method for bru_mapper_const
ibm_n(mapper, ...)

# S3 method for bru_mapper_const
ibm_values(mapper, ...)

# S3 method for bru_mapper_const
ibm_jacobian(mapper, input, ...)

# S3 method for bru_mapper_const
ibm_eval(mapper, input, state = NULL, ...)

Arguments

mapper

A mapper S3 object, inheriting from bru_mapper.

...

Arguments passed on to other methods

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_const()
ibm_eval2(m, input = 1:4)
#> $offset
#> [1] 1 2 3 4
#> 
#> $jacobian
#> 4 x 0 sparse Matrix of class "dgCMatrix"
#>     
#> [1,]
#> [2,]
#> [3,]
#> [4,]
#>