| add_spatial_coupling_to_ldata | R Documentation |
A utility function to combine local model parameters
(ldata) and spatial coupling to other nodes and add the
result to ldata.
add_spatial_coupling_to_ldata(
x,
y,
cutoff,
ldata = NULL,
min_dist = NULL,
na_fail = TRUE
)
x |
Projected x coordinate |
y |
Projected y coordinate |
cutoff |
The distance cutoff |
ldata |
local data for the nodes. Can either be specified as
a |
min_dist |
The minimum distance to separate two nodes. If
the coordinates for two nodes are identical, the min_dist must
be assigned or an error is raised. Default is |
na_fail |
A logical indicating whether missing values in
|
Format for ldata: the first n indicies (1, 2, ..., n) are the local model parameters, i.e, the indata to the function. They are followed by the neighbor data, pairs of (index, value) and then a stop pair (-1, 0) where 'index' is the zero-based index to the neighbor and the value is determined by the metric argument.
matrix
ldata <- add_spatial_coupling_to_ldata(x = nodes$x,
y = nodes$y,
cutoff = 5000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.