Calculate geodesic distances between cells in a trajectory

Will calculate geodesic distances between cells within a trajectory. To speed things up, only the distances with a set of waypoint cells are calculated.

calculate_geodesic_distances(trajectory, waypoint_cells = NULL,
  waypoint_milestone_percentages = NULL)

compute_tented_geodesic_distances(trajectory, waypoint_cells = NULL,
  waypoint_milestone_percentages = NULL)

Arguments

trajectory

The trajectory as created by infer_trajectory() or add_trajectory()

waypoint_cells

A vector of waypoint cells. Only the geodesic distances between waypoint cells and all other cells will be calculated.

waypoint_milestone_percentages

The milestone percentages of non-cell waypoints, containing waypoint_id, milestone_id and percentage columns

Details

The geodesic distance takes into account the length of an edge regions of delayed commitment.

Examples

data(example_dataset) geodesic_distances <- calculate_geodesic_distances(example_dataset)