| bm_sum | R Documentation |
Defines a mapper that adds the effects of each submapper.
The ibm_n() method returns the sum of ibm_n(mappers[[k]]), and
ibm_values() returns seq_len(ibm_n(mapper)).
bm_sum(mappers, single_input = FALSE)
bru_mapper_sum(...)
## S3 method for class 'bm_sum'
x[i, drop = TRUE]
## S3 method for class 'bru_mapper_sum'
x[i, drop = TRUE]
mappers |
A list of |
single_input |
logical. If |
... |
Arguments passed on to |
x |
object from which to extract element(s) |
i |
indices specifying element(s) to extract |
drop |
logical;
For |
A bm_sum object.
[-indexing a bm_sum extracts a subset
bm_sum object (for drop FALSE) or an individual sub-mapper
(for drop TRUE, and i identifies a single element)
bru_mapper, bru_mapper_generics
Other mappers:
bm_aggregate(),
bm_collect(),
bm_const(),
bm_expr(),
bm_factor(),
bm_fm_mesh_1d,
bm_fmesher(),
bm_harmonics(),
bm_index(),
bm_linear(),
bm_logitaverage(),
bm_logsumexp(),
bm_marginal(),
bm_matrix(),
bm_multi(),
bm_pipe(),
bm_reparam(),
bm_repeat(),
bm_scale(),
bm_shift(),
bm_taylor(),
bru_get_mapper(),
bru_mapper()
(m <- bm_sum(list(a = bm_index(3), b = bm_index(2))))
ibm_n(m)
ibm_values(m)
ibm_jacobian(m, list(a = 1:3, b = c(1, 1, 2)))
ibm_eval(
m,
list(a = 1:3, b = c(1, 1, 2)),
seq_len(ibm_n(m))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.