View source: R/map_utilities.R
create_map | R Documentation |
This function creates a mapping from a parameter list.
create_map(params)
params |
Parameter list with the mapping definition, see Details. |
It calls the mapping creation function responsible for mappings
of maptype
stated in the parameter list. It also
invokes the setup
function to initialize the mapping,
provided by all mapping objects, see the Value section
of create_maptype_map
.
For all maps the fields mapname
and maptype
must be present
in the parameter list.
The other parameters depend on the specifics
of the mapping, see e.g., create_linearinterpol_map
.
Returns a list of functions to operate with the mapping, see create_maptype_map
.
This function should be preferred over the specialized mapping creation
functions, such as create_linearinerpol_mapping
.
Other mappings:
create_compound_map()
,
create_convolution_with_xtrafo_map()
,
create_derivative2nd_map()
,
create_derivative_map()
,
create_linearinterpol_map()
,
create_linearinterpol_with_xtrafo_map()
,
create_linearmap_map()
,
create_maptype_map()
,
create_nonlinear_map()
,
create_normerr_map()
,
create_product_map()
params <- list( mapname = "mylinearintmap", maptype = "linearinterpol_map", src_idx = 1:3, tar_idx = 4:6, src_x = c(1,5,10), tar_x = c(4,5,6) ) mymap <- create_map(params) x <- c(1,2,3,0,0,0) mymap$propagate(x) mymap$jacobian(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.