estimate_centrality_threshold: Estimate a value for the 'dist_threshold' parameter of the
dodgr_centrality function.
Description
Providing distance thresholds to this
function generally provides considerably speed gains, and results in
approximations of centrality. This function enables the determination of
values of 'dist_threshold' corresponding to specific degrees of accuracy.
A single value for 'dist_threshold' giving the required tolerance.
Arguments
graph
'data.frame' or equivalent object representing the network
graph (see Details)
tolerance
Desired maximal degree of inaccuracy in centrality estimates
values will be accurate to within this amount, subject to a constant
scaling factor. Note that threshold values increase non-linearly with
decreasing values of 'tolerance'
See Also
Other centrality:
dodgr_centrality(),
estimate_centrality_time()
# No threshold estimation possible on this small example graph:graph <- weight_streetnet (hampi, wt_profile = "foot")
estimate_centrality_threshold (graph)