bm_taylor | R Documentation |
Provides a pre-computed affine mapping,
internally used to represent and evaluate linearisation information.
The state0
information indicates for which state the offset
was
evaluated;
The affine mapper output is defined as
effect(state) = offset + jacobian %*% (state - state0)
bm_taylor(offset = NULL, jacobian = NULL, state0 = NULL, values_mapper = NULL)
bru_mapper_taylor(...)
## S3 method for class 'bm_taylor'
ibm_n(mapper, inla_f = FALSE, multi = FALSE, ...)
## S3 method for class 'bm_taylor'
ibm_n_output(mapper, input, ...)
## S3 method for class 'bm_taylor'
ibm_values(mapper, inla_f = FALSE, multi = FALSE, ...)
## S3 method for class 'bm_taylor'
ibm_jacobian(mapper, ..., multi = FALSE)
## S3 method for class 'bm_taylor'
ibm_eval(mapper, input = NULL, state = NULL, ...)
offset |
For |
jacobian |
For |
state0 |
For |
values_mapper |
mapper object to be used for |
... |
Arguments passed on to other methods |
mapper |
A mapper S3 object, inheriting from |
inla_f |
logical; when |
multi |
logical;
If |
input |
Data input for the mapper. |
state |
A vector of latent state values for the mapping,
of length |
ibm_eval(bm_taylor)
: Evaluates linearised
mapper information at the given state
. The input
argument is ignored,
so that the usual argument order
ibm_eval(mapper, input, state)
syntax can be used, but also
ibm_eval(mapper, state = state)
. For a mapper with a named jacobian list,
the state
argument must also be a named list. If state
is NULL
,
all-zero is assumed.
bru_mapper, bru_mapper_generics
Other mappers:
bm_aggregate()
,
bm_collect()
,
bm_const()
,
bm_factor()
,
bm_fmesher()
,
bm_harmonics()
,
bm_index()
,
bm_linear()
,
bm_logsumexp()
,
bm_marginal()
,
bm_matrix()
,
bm_mesh_B()
,
bm_multi()
,
bm_pipe()
,
bm_repeat()
,
bm_scale()
,
bm_shift()
,
bm_sum()
,
bru_get_mapper()
,
bru_mapper()
,
bru_mapper.fm_mesh_1d()
,
bru_mapper.fm_mesh_2d()
,
bru_mapper_generics
m <- bm_taylor(
offset = rep(2, 3),
jacobian = matrix(1:6, 3, 2),
state0 = c(1, 2)
)
ibm_eval2(m, state = 2:3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.