bm_scale: Mapper for element-wise scaling

View source: R/mappers.R

bm_scaleR Documentation

Mapper for element-wise scaling

Description

Create a standalone scaling mapper that can be used as part of a bm_pipe. If mapper is non-null, the bm_scale() constructor returns bm_pipe(list(mapper = mapper, scale = bm_scale()))

Usage

bm_scale(mapper = NULL)

bru_mapper_scale(...)

Arguments

mapper

An optional bru_mapper to be scaled.

...

Arguments passed on to bm_scale()

Value

A bm_scale mapper object.

See Also

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_shift(), bm_sum(), bm_taylor(), bru_get_mapper(), bru_mapper()

Examples

m <- bm_scale()
ibm_eval2(m, c(1, 2, 1, 2), 1:4)


inlabru documentation built on July 28, 2026, 9:07 a.m.