Create a standalone
scaling mapper that can be used as part of a bru_mapper_pipe
.
If mapper
is non-null, the bru_mapper_scale()
constructor
returns
bru_mapper_pipe(list(mapper = mapper, scale = bru_mapper_scale()))
bru_mapper_scale(mapper = NULL)# S3 method for bru_mapper_scale
ibm_n(mapper, ..., state = NULL, n_state = NULL)
# S3 method for bru_mapper_scale
ibm_n_output(mapper, input, state = NULL, ..., n_state = NULL)
# S3 method for bru_mapper_scale
ibm_values(mapper, ..., state = NULL, n_state = NULL)
# S3 method for bru_mapper_scale
ibm_jacobian(mapper, input, state = NULL, ..., sub_lin = NULL)
# S3 method for bru_mapper_scale
ibm_eval(mapper, input, state = NULL, ..., sub_lin = NULL)
A mapper S3 object, inheriting from bru_mapper
.
Arguments passed on to other methods
A vector of latent state values for the mapping,
of length ibm_n(mapper, inla_f = FALSE)
integer giving the length of the state vector for mappers that have state dependent output size.
Data input for the mapper.
Internal, optional pre-computed sub-mapper information
For bru_mapper_scale
, input
NULL values
are interpreted as no scaling.
bru_mapper, bru_mapper_generics
Other mappers:
bru_get_mapper()
,
bru_mapper()
,
bru_mapper.fm_mesh_1d()
,
bru_mapper.fm_mesh_2d()
,
bru_mapper_aggregate()
,
bru_mapper_collect()
,
bru_mapper_const()
,
bru_mapper_factor()
,
bru_mapper_generics
,
bru_mapper_harmonics()
,
bru_mapper_index()
,
bru_mapper_linear()
,
bru_mapper_logsumexp()
,
bru_mapper_marginal()
,
bru_mapper_matrix()
,
bru_mapper_mesh_B()
,
bru_mapper_multi()
,
bru_mapper_pipe()
,
bru_mapper_shift()
,
bru_mapper_taylor()
m <- bru_mapper_scale()
ibm_eval2(m, c(1, 2, 1, 2), 1:4)
Run the code above in your browser using DataLab