View source: R/extendr-wrappers.R
| rust_compute_access_multi | R Documentation |
Compute cumulative POI accessibility for target nodes in parallel.
rust_compute_access_multi(
n_nodes,
head_num,
to,
wt,
target_nodes,
poi_nodes,
poi_weights,
cutoff,
num_threads
)
n_nodes |
Total number of nodes. |
head_num |
CSR head array. |
to |
CSR destination array. |
wt |
CSR travel time array (seconds). |
target_nodes |
Indices of nodes to compute accessibility for (0-indexed). |
poi_nodes |
Vector of node indices where POIs are situated. |
poi_weights |
Vector of weights/counts for each POI node. |
cutoff |
Travel time cutoff in seconds. |
num_threads |
Number of worker threads (1 or 2; values outside this range are clamped to the supported range by the native implementation). |
A named list with numeric accessible_count and min_time_s vectors, one element per target node. These give weighted reachable POI counts and travel time in seconds to the nearest reachable POI, respectively.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.