tri.dellens {tripack} | R Documentation |
Compute the Delaunay segment lengths
Description
Return a vector of Delaunay segment lengths for the voronoi object.
The Delaunay triangles connected to sites contained in exceptions
vector are ignored (unless inverse
is TRUE, when only those
Delaunay triangles are accepted).
The exceptions
vector is provided so that sites at the border
of a region can be removed, as these tend to bias the distribution of
Delaunay segment lengths. exceptions
can be created by
voronoi.findrejectsites
.
Usage
tri.dellens(voronoi.obj, exceptions = NULL, inverse = FALSE)
Arguments
voronoi.obj |
object of class |
exceptions |
a numerical vector |
inverse |
Logical |
Value
A vector of Delaunay segment lengths.
Author(s)
S. J. Eglen
See Also
voronoi.findrejectsites
, voronoi.mosaic
,
Examples
data(tritest)
tritest.vm <- voronoi.mosaic(tritest$x,tritest$y)
tritest.vm.rejects <- voronoi.findrejectsites(tritest.vm, 0,1, 0, 1)
trilens.all <- tri.dellens(tritest.vm)
trilens.acc <- tri.dellens(tritest.vm, tritest.vm.rejects)
trilens.rej <- tri.dellens(tritest.vm, tritest.vm.rejects, inverse=TRUE)
par(mfrow=c(3,1))
dotchart(trilens.all, main="all Delaunay segment lengths")
dotchart(trilens.acc, main="excluding border sites")
dotchart(trilens.rej, main="only border sites")
[Package tripack version 1.3-9.1 Index]