Learn R Programming

geodist (version 0.1.1)

geodist_benchmark: geodist_benchmark

Description

Benchmark errors for different geodist measures

Usage

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

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).

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

Examples

Run this code
geodist_benchmark (0.0, 1.0, 100L)

Run the code above in your browser using DataLab