Description Usage Arguments Value Examples
Calculate routing probabilities for a data.frame
1 | get_probability(graph, start_node, end_node, eta = 1)
|
graph |
|
start_node |
Starting node for shortest path route. |
end_node |
Ending node for shortest path route. |
eta |
The parameter controlling the entropy (scale is arbitrary). |
list
containing the data.frame
of the graph elements
with the routing probabilities and the estimated probabilistic distance.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
graph <- road_data_sample
start_pt <- c (11.603,48.163)
end_pt <- c (11.608,48.167)
pts <- select_vertices_by_coordinates (graph, start_pt, end_pt)
route_start <- pts[1]
route_end <- pts [2]
get_probability (graph = graph, start_node = route_start,
end_node = route_end, eta = 0.6)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.