Returns the number of arcs of Central Similarity Proximity Catch Digraphs (CS-PCDs)
whose vertices are the 1D data set dat
in the one-interval case.
The data points could be inside or outside the interval is
CS proximity region is constructed
with an expansion parameter c
in
See also (ceyhan:revstat-2016;textualpcds).
NumArcsCSint(dat, t, c = 0.5, int)
A set of 1D points which constitute the vertices of CS-PCD.
A positive real number which serves as the expansion parameter in CS proximity region.
A positive real number in
A vector of two real numbers representing an interval.
Number of arcs for the CS-PCD whose vertices are the 1D data set, dat
,
with expansion parameter, c
in
# NOT RUN {
c<-.4
t<-2
a<-0; b<-10; int<-c(a,b)
n<-10
dat<-runif(n,a,b)
NumArcsCSint(dat,t,c,int)
NumArcsCSint(3,t,c,int)
NumArcsCSint(dat,t,c=.3,int)
NumArcsCSint(dat,t=1.5,c,int)
n<-10 #try also n<-20
dat<-runif(n,a,b)
NumArcsCSint(dat,t,c,int)
n<-10
dat<-runif(n,a,b)
NumArcsCSint(dat,t,c,int)
# }
Run the code above in your browser using DataLab