dist_functions {sphet} | R Documentation |
The great circle distance is calculated by the function rdist.earth
in library fields
.
The distance measures implemented in sphet
are:
'euclidean'
: √{∑{(x_i - y_i)^2}}
'chebyshev'
: max(|x_i - y_i|)
'braycur'
: \frac{∑{|x_i - y_i|}}{∑{|x_i + y_i|}}
'canberra'
: \frac{∑{|x_i - y_i|}}{∑{|x_i| + |y_i|}}
'gcircle'
: see spDists
, which uses an approximation to the WGS84 spheroid.
Gianfranco Piras gpiras@mac.com