An object of class "NumArcs"
.
Returns the number of arcs of Central Similarity Proximity Catch Digraphs (CS-PCDs)
whose vertices are the
data points in Xp
in the one middle interval case.
It also provides number of vertices
(i.e., number of data points inside the intervals)
and indices of the data points that reside in the intervals.
The data points could be inside or outside the interval is int
\(=(a,b)\).
CS proximity region is constructed with an expansion parameter \(t>0\) and a centrality parameter \(c \in (0,1)\). CS proximity region is constructed for both points inside and outside the interval, hence the arcs may exist for all points inside or outside the interval.
See also (ceyhan:revstat-2016;textualpcds).
num.arcsCSint(Xp, int, t, c = 0.5)
A list
with the elements
A short description of the output: number of arcs and quantities related to the interval
Total number of arcs in all intervals (including the end-intervals), i.e., the number of arcs for the entire CS-PCD
Number of Xp
points in the interval int
The vector of number of Xp
points in the partition intervals (including the end-intervals)
The vector
of the number of arcs of the components of the CS-PCD in the
partition intervals (including the end-intervals)
A vector
of indices of partition intervals in which data points reside.
Partition intervals are numbered from left to right with 1 being the left end-interval.
Indices of data points in the left end-interval, middle interval, and right end-interval (respectively)
Tessellation points, i.e., points on which the tessellation of
the study region is performed,
here, tessellation points are the end points of the support interval int
.
Vertices of the digraph, Xp
.
A set of 1D points which constitute the vertices of CS-PCD.
A vector
of two real numbers representing an interval.
A positive real number which serves as the expansion parameter in CS proximity region.
A positive real number in \((0,1)\) parameterizing the center inside int
\(=(a,b)\)
with the default c=.5
.
For the interval, int
\(=(a,b)\), the parameterized center is \(M_c=a+c(b-a)\).
Elvan Ceyhan
num.arcsCSmid.int
, num.arcsCSend.int
,
and num.arcsPEint
c<-.4
t<-2
a<-0; b<-10; int<-c(a,b)
n<-10
set.seed(1)
Xp<-runif(n,a,b)
Narcs = num.arcsCSint(Xp,int,t,c)
Narcs
summary(Narcs)
plot(Narcs)
Run the code above in your browser using DataLab