CSedge.dens.tri | R Documentation |
Returns the edge density
of the underlying or reflexivity graphs of
Central Similarity Proximity Catch Digraphs (CS-PCDs)
whose vertex set is the given 2D numerical data set, Xp
,
(some of its members are) in the triangle tri
.
CS proximity regions is defined with respect to tri
with
expansion parameter t > 0
and edge regions are
based on center M=(m_1,m_2)
in Cartesian coordinates or
M=(\alpha,\beta,\gamma)
in barycentric coordinates
in the interior of the triangle tri
; default is M=(1,1,1)
, i.e.,
the center of mass of tri
.
The function also provides edge density standardized
by the mean and asymptotic variance of the edge density
of the underlying or reflexivity graphs of CS-PCD
for uniform data in the triangle tri
only when M
is the center of mass.
For the number of edges, loops are not allowed.
in.tri.only
is a logical argument (default is FALSE
)
for considering only the points
inside the triangle or all the points as the vertices of the digraph.
if in.tri.only=TRUE
, edge density is computed only for
the points inside the triangle (i.e., edge density of the subgraph of
the underlying or reflexivity graph
induced by the vertices in the triangle is computed),
otherwise edge density of the entire graph
(i.e., graph with all the vertices) is computed.
See also (\insertCiteceyhan:Phd-thesis,ceyhan:stamet2016;textualpcds.ugraph).
CSedge.dens.tri(
Xp,
tri,
t,
M = c(1, 1, 1),
ugraph = c("underlying", "reflexivity"),
in.tri.only = FALSE
)
Xp |
A set of 2D points which constitute the vertices of the underlying or reflexivity graphs of the CS-PCD. |
tri |
A |
t |
A positive real number which serves as the expansion parameter in CS proximity region. |
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 |
ugraph |
The type of the graph based on CS-PCDs,
|
in.tri.only |
A logical argument (default is |
A list
with the elements
edge.dens |
Edge density of the underlying
or reflexivity graphs based on the CS-PCD
whose vertices are the 2D numerical data set, |
std.edge.dens |
Edge density standardized
by the mean and asymptotic variance of the edge
density of the underlying or reflexivity graphs
based on the CS-PCD for uniform data in the triangle |
Elvan Ceyhan
ASedge.dens.tri
, PEedge.dens.tri
,
and CSarc.dens.tri
#\donttest{
A<-c(1,1); B<-c(2,0); C<-c(1.5,2);
Tr<-rbind(A,B,C);
n<-10
set.seed(1)
Xp<-pcds::runif.tri(n,Tr)$g
M<-as.numeric(pcds::runif.tri(1,Tr)$g)
#For the underlying graph
num.edgesCStri(Xp,Tr,t=1.5,M)$num.edges
CSedge.dens.tri(Xp,Tr,t=1.5,M)
CSedge.dens.tri(Xp,Tr,t=1.5,M,in.tri.only = TRUE)
#For the reflexivity graph
num.edgesCStri(Xp,Tr,t=1.5,M,ugraph="r")$num.edges
CSedge.dens.tri(Xp,Tr,t=1.5,M,ugraph="r")
CSedge.dens.tri(Xp,Tr,t=1.5,M,in.tri.only = TRUE,ugraph="r")
#}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.