Benchmark errors for different geodist measures

geodist_benchmark(lat = 0, d = 1, n = 100L)

Arguments

lat

Central latitude where errors should be measured

d

Distance in metres over which errors should be measured

n

Number of random values used to generate estimates

Value

A 'data.frame' with three columns respectively comparing the accuracy of the [Haversine, Vincenty, cheap] metrics against geodesic measures in both absolute and relative terms (as two rows of the table).

Examples

geodist_benchmark (0.0, 1.0, 100L)
#>            haversine    vincenty        cheap
#> absolute 0.001312864 0.001312864 0.0009260344
#> relative 0.003458974 0.003458974 0.0024656260