Learn R Programming

pcds (version 0.1.2)

NumArcsCSend1D: Number of arcs of Central Similarity Proximity Catch Digraphs (CS-PCDs) - end interval case

Description

Returns the number of arcs of Central Similarity Proximity Catch Digraphs (CS-PCDs) whose vertices are a 1D numerical data set, dat, outside the interval int\(=(a,b)\).

CS proximity region is constructed only with expansion parameter \(t>0\) for points outside the interval \((a,b)\).

End vertex regions are based on the end points of the interval, i.e., the corresponding end vertex region is an interval as \((-\infty,a)\) or \((b,\infty)\) for the interval \((a,b)\). For the number of arcs, loops are not allowed, so arcs are only possible for points outside the interval, int, for this function.

See also (ceyhan:revstat-2016;textualpcds).

Usage

NumArcsCSend1D(dat, t, int)

Arguments

dat

A vector of 1D points which constitute the vertices of the digraph.

t

A positive real number which serves as the expansion parameter in CS proximity region.

int

A vector of two real numbers representing an interval.

Value

Number of arcs for the CS-PCD with vertices being 1D data set, dat, expansion parameter, t, for the end intervals.

References

See Also

NumArcsCSmid1D, NumArcsPEmid1D, and NumArcsPEend1D

Examples

Run this code
# NOT RUN {
a<-0; b<-10; int<-c(a,b)

n<-5
datL<-runif(n,a-5,a)
datR<-runif(n,b,b+5)
dat<-c(datL,datR)

NumArcsCSend1D(dat,t=2,int)

NumArcsCSend1D(dat,t=1.2,int)

NumArcsCSend1D(dat,t=4,int)

NumArcsCSend1D(dat,t=2,int+5)
NumArcsCSend1D(dat,t=2,int=c(-5,15))

n<-10  #try also n<-20
dat2<-runif(n,a-5,b+5)
NumArcsCSend1D(dat2,t=2,int)

t<-.5
NumArcsCSend1D(dat,t,int)

# }

Run the code above in your browser using DataLab