NPEtri {pcds} | R Documentation |
The vertices of the Proportional Edge (PE) Proximity Region in a general triangle
Description
Returns the vertices of the PE proximity region
(which is itself a triangle) for a point in the
triangle tri
(rv=1,rv=2,rv=3)
.
PE proximity region is defined with respect to the triangle tri
with expansion parameter
and vertex regions based on center
in Cartesian coordinates or
in barycentric coordinates
in the interior of the triangle
tri
or based on the circumcenter of tri
;
default is , i.e.,
the center of mass of
tri
.
Vertex regions are labeled as
rowwise for the vertices
of the triangle
tri
.
rv
is the index of the vertex region p
resides,
with default=NULL
.
If p
is outside of tri
,
it returns NULL
for the proximity region.
See also (Ceyhan (2005); Ceyhan et al. (2006); Ceyhan (2011)).
Usage
NPEtri(p, tri, r, M = c(1, 1, 1), rv = NULL)
Arguments
p |
A 2D point whose PE proximity region is to be computed. |
tri |
A |
r |
A positive real number which serves
as the expansion parameter in PE proximity region;
must be |
M |
A 2D point in Cartesian coordinates
or a 3D point in barycentric coordinates
which serves as a center in the interior of the triangle |
rv |
Index of the |
Value
Vertices of the triangular region
which constitutes the PE proximity region with expansion parameter
r
and center M
for a point p
Author(s)
Elvan Ceyhan
References
Ceyhan E (2005).
An Investigation of Proximity Catch Digraphs in Delaunay Tessellations, also available as technical monograph titled Proximity Catch Digraphs: Auxiliary Tools, Properties, and Applications.
Ph.D. thesis, The Johns Hopkins University, Baltimore, MD, 21218.
Ceyhan E (2011).
“Spatial Clustering Tests Based on Domination Number of a New Random Digraph Family.”
Communications in Statistics - Theory and Methods, 40(8), 1363-1395.
Ceyhan E, Priebe CE, Wierman JC (2006).
“Relative density of the random -factor proximity catch digraphs for testing spatial patterns of segregation and association.”
Computational Statistics & Data Analysis, 50(8), 1925-1964.
See Also
NPEbasic.tri
, NAStri
,
NCStri
, and IarcPEtri
Examples
A<-c(1,1); B<-c(2,0); C<-c(1.5,2);
Tr<-rbind(A,B,C);
M<-as.numeric(runif.tri(1,Tr)$g) #try also M<-c(1.6,1.0)
r<-1.5
n<-3
set.seed(1)
Xp<-runif.tri(n,Tr)$g
NPEtri(Xp[3,],Tr,r,M)
P1<-as.numeric(runif.tri(1,Tr)$g) #try also P1<-c(.4,.2)
NPEtri(P1,Tr,r,M)
M<-c(1.3,1.3)
r<-2
P1<-c(1.4,1.2)
P2<-c(1.5,1.26)
NPEtri(P1,Tr,r,M)
NPEtri(P2,Tr,r,M)
#or try
Rv<-rel.vert.tri(P1,Tr,M)$rv
NPEtri(P1,Tr,r,M,Rv)