max_dist {remotePARTS} | R Documentation |
calculate maximum distance among a table of coordinates
Description
calculate maximum distance among a table of coordinates
Usage
max_dist(coords, dist_FUN = "distm_km")
Arguments
coords |
the coordinate matrix (or dataframe) from which a maximum distance is desired. |
dist_FUN |
the distance function used to calculate distances |
Details
First the outermost points are found by fitting a convex hull in
Euclidean space. Then, the distances between these outer points is calculated
with dist_FUN
, and the maximum of these distances is returned
This is a fast, simple way of determining the maximum distance.
Value
The maximum distance between two points (units determined by
dist_FUN
)
[Package remotePARTS version 1.0.4 Index]