| bdist.sphwin | R Documentation |
Calculate the minimum great circle distance from a point (or each of a set of points) to the boundary of a window on the sphere.
bdist.sphwin(X, win = sphwin(type = "sphere"))
X |
The locations of the points for which the boundary distance is
calculated. Either a 2 column matrix with locations of points in
spherical coordinates, a 3 column matrix with locations of points in
Cartesian coordinates, or an object of class |
win |
The window. An object of class |
This function uses the dot product to calculates\ the minimum great circle distance from a point (or each of
a set of points) to the boundary of a region on the sphere that can be
defined using sphwin.
A numeric of length equal to the number of points in X. The
first value is the minimum boundary distance for the point in the first
row of X, and so on.
This function is the analogue for point patterns on the sphere of the
function bdist.points in spatstat.
Tom Lawrence tjlawrence@bigpond.com
bdist.points, nndistsph (nearest
neighbour distances), pairdistsph (pairwise distances),
gcdist (great circle distance between two points)
sphcap <- sphwin(type="band", param=c(0, pi/3), ref=c(0,0)) rpp.sc <- rpoispp.sphwin(win=sphcap, lambda=10) bdist.sphwin(X=rpp.sc, win=sphcap)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.