Estimate Probability of Source-Feature Connectivity
Source:R/runout_connectivity.R
sourceConnect.RdCalculates the proportion of simulated paths (e.g., from random walk runout simulations) that intersect a binary connectivity feature mask.
Arguments
- sim_paths
A list of matrices, each containing (row, col) indices of cells visited by a simulation path.
- feature_mask
A binary matrix indicating presence (
1) of a connectivity feature (frommakeConnFeature()).- trials
Optional integer specifying how many simulation paths to consider. Defaults to all paths.