View source: R/mapper_repeat.R
| bm_repeat | R Documentation |
Defines a repeated-space mapper that sums the contributions for
each copy. The ibm_n() method returns ibm_n(mapper) * n_rep, and
ibm_values() returns seq_len(ibm_n(mapper)).
bm_repeat(mapper, n_rep, interleaved = FALSE)
bru_mapper_repeat(...)
## S3 method for class 'bm_repeat'
ibm_n(mapper, ...)
## S3 method for class 'bm_repeat'
ibm_n_output(mapper, ...)
## S3 method for class 'bm_repeat'
ibm_values(mapper, ...)
## S3 method for class 'bm_repeat'
ibm_jacobian(
mapper,
input,
state = NULL,
inla_f = FALSE,
multi = FALSE,
...,
sub_lin = NULL
)
## S3 method for class 'bm_repeat'
ibm_eval(mapper, input, state, multi = FALSE, ..., sub_lin = NULL)
## S3 method for class 'bm_repeat'
ibm_linear(mapper, input, state, ...)
## S3 method for class 'bm_repeat'
ibm_invalid_output(mapper, input, state, ...)
mapper |
The mapper to be repeated. |
n_rep |
The number of times to repeat the mapper. If a vector, the
non-interleaved repeats are combined into a single repeat mapping,
and combined with interleaved repeats via a |
interleaved |
logical; if If |
... |
Arguments passed on to other methods |
input |
Data input for the mapper. |
state |
A vector of latent state values for the mapping,
of length |
inla_f |
logical; when |
multi |
logical;
If |
sub_lin |
Internal, optional pre-computed sub-mapper information |
A bm_repeat or bm_sum object, or the original
input mapper.
ibm_jacobian(bm_repeat): The input should take the format of the
repeated submapper.
ibm_invalid_output(bm_repeat): Passes on the input to the corresponding method.
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_scale(),
bm_shift(),
bm_sum(),
bm_taylor(),
bru_get_mapper(),
bru_mapper(),
bru_mapper.fm_mesh_1d(),
bru_mapper.fm_mesh_2d(),
bru_mapper_generics
(m0 <- bm_index(3))
(m <- bm_repeat(m0, 5))
ibm_n(m)
ibm_values(m)
ibm_jacobian(m, 1:3)
ibm_eval(m, 1:3, seq_len(ibm_n(m)))
# Interleaving and grouping
(m <- bm_repeat(m0, c(2, 1, 2), c(TRUE, FALSE, FALSE)))
ibm_n(m)
ibm_values(m)
ibm_jacobian(m, 1:3)
ibm_eval(m, 1:3, seq_len(ibm_n(m)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.