Skip to content

Commit

Permalink
Improve help files
Browse files Browse the repository at this point in the history
  • Loading branch information
baddstats committed Oct 7, 2022
1 parent 4cc88a7 commit 62fdae7
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 11 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: spatstat.geom
Version: 2.999-999.005
Date: 2022-09-20
Version: 2.999-999.006
Date: 2022-10-07
Title: Geometrical Functionality of the 'spatstat' Family
Authors@R: c(person("Adrian", "Baddeley",
role = c("aut", "cre"),
Expand Down
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CHANGES IN spatstat.geom VERSION 2.999-999.005
CHANGES IN spatstat.geom VERSION 2.999-999.006

OVERVIEW

Expand Down
2 changes: 1 addition & 1 deletion inst/doc/packagesizes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ date version nhelpfiles nobjects ndatasets Rlines srclines
"2021-12-10" "2.3-1" 440 1176 0 34643 15173
"2022-02-12" "2.3-2" 440 1176 0 34657 15173
"2022-03-28" "2.4-0" 441 1178 0 34804 15188
"2022-09-20" "2.999-999.005" 442 1182 0 35107 15325
"2022-10-07" "2.999-999.006" 442 1182 0 35107 15325
9 changes: 6 additions & 3 deletions man/delaunay.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ delaunay(X)
}
\details{
The Delaunay triangulation of a spatial point pattern \code{X}
is defined as follows. First the Dirichlet/Voronoi tessellation of \code{X}
computed; see \code{\link{dirichlet}}. Then two points of \code{X}
is defined as follows. First the Dirichlet/Voronoi tessellation
based on \code{X} is computed; see \code{\link{dirichlet}}. This
tessellation is extended to cover the entire two-dimensional plane.
Then two points of \code{X}
are defined to be Delaunay neighbours if their Dirichlet/Voronoi tiles
share a common boundary. Every pair of Delaunay neighbours is
joined by a straight line. The result is a tessellation, consisting of
joined by a straight line to make the Delaunay triangulation.
The result is a tessellation, consisting of
disjoint triangles. The union of these triangles is the convex hull of
\code{X}.
}
Expand Down
21 changes: 17 additions & 4 deletions man/delaunayDistance.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,36 @@ delaunayDistance(X)
}
\details{
The Delaunay triangulation of a spatial point pattern \code{X}
is defined as follows. First the Dirichlet/Voronoi tessellation of \code{X}
computed; see \code{\link{dirichlet}}. Then two points of \code{X}
is defined as follows. First the Dirichlet/Voronoi tessellation
based on \code{X} is computed; see \code{\link{dirichlet}}. This
tessellation is extended to cover the entire two-dimensional plane.
Then two points of \code{X}
are defined to be Delaunay neighbours if their Dirichlet/Voronoi tiles
share a common boundary. Every pair of Delaunay neighbours is
joined by a straight line.
joined by a straight line to make the Delaunay triangulation.

The \emph{graph distance}
in the Delaunay triangulation between two points \code{X[i]} and \code{X[j]}
is the minimum number of edges of the Delaunay triangulation
that must be traversed to go from \code{X[i]} to \code{X[j]}.
Two points have graph distance 1 if they are immediate neighbours.

This command returns a matrix \code{D} such that
\code{D[i,j]} is the graph distance
between \code{X[i]} and \code{X[j]}.
}
\section{Definition of neighbours}{
Note that \code{\link{dirichlet}(X)}
restricts the Dirichlet tessellation to the window containing
\code{X}, whereas \code{dirichletDistance} uses the Dirichlet
tessellation over the entire two-dimensional plane.
Some points may be Delaunay neighbours
according to \code{delaunayDistance(X)}
although the corresponding tiles of \code{dirichlet(X)}
do not share a boundary inside \code{Window(X)}.
}
\value{
A symmetric square matrix with integer entries.
A symmetric square matrix with non-negative integer entries.
}
\seealso{
\code{\link{delaunay}},
Expand Down

0 comments on commit 62fdae7

Please sign in to comment.