| ibm_eval | R Documentation |
Implementations must return a vector of length ibm_n_output().
The input contents must
be in a format accepted by ibm_jacobian()
for the mapper.
Specific implementations for bm_aggregate,
bm_collect,
bm_const,
bm_expr,
bm_list,
bm_logitaverage,
bm_logsumexp,
bm_marginal,
bm_multi,
bm_pipe,
bm_reparam,
bm_repeat,
bm_scale,
bm_shift,
bm_sum,
bm_taylor,
bru_comp,
bru_comp_list,
bru_model, bru_obs,
bru_obs_list, default.
ibm_eval(mapper, input, state = NULL, ...)
## Default S3 method:
ibm_eval(mapper, input, state = NULL, ..., jacobian = NULL)
## S3 method for class 'bru_obs'
ibm_eval(
mapper,
input,
state,
...,
multi = FALSE,
comp_mappers,
eval_fun = NULL
)
## S3 method for class 'bru_obs_list'
ibm_eval(
mapper,
input,
state,
...,
multi = FALSE,
comp_mappers,
eval_fun = NULL
)
mapper |
A mapper S3 object, inheriting from |
input |
Data input for the mapper. |
state |
A vector of latent state values for the mapping,
of length |
... |
Arguments passed on to
|
jacobian |
For |
multi |
logical;
If |
comp_mappers |
A list of mappers, typically from
|
eval_fun |
A list of functions, typically from
|
A vector of length ibm_n_output(mapper, input, state, ...).
ibm_eval(default): Verifies that the mapper is linear
with ibm_is_linear(), and then computes a linear mapping
as ibm_jacobian(...) %*% state. When state is NULL,
a zero vector of length ibm_n_output() is returned.
Other mapper methods:
bru_mapper_generics,
ibm_as_taylor(),
ibm_eval2(),
ibm_inla_subset(),
ibm_invalid_output(),
ibm_is_linear(),
ibm_is_rowwise(),
ibm_jacobian(),
ibm_n(),
ibm_n_output(),
ibm_names(),
ibm_simplify(),
ibm_values()
m <- bm_linear()
ibm_eval(m, input = c(1, 3, 4, 5, 2), state = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.