Learn R Programming

pcds (version 0.1.6)

NumArcsCSend.int: 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, Xp, 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

NumArcsCSend.int(Xp, int, t)

Value

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

Arguments

Xp

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

int

A vector of two real numbers representing an interval.

t

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

Author

Elvan Ceyhan

References

See Also

NumArcsCSmid.int, NumArcsPEmid.int, and NumArcsPEend.int

Examples

Run this code
if (FALSE) {
a<-0; b<-10; int<-c(a,b)

n<-10
XpL<-runif(n,a-5,a)
XpR<-runif(n,b,b+5)
Xp<-c(XpL,XpR)

NumArcsCSend.int(Xp,int,t=1.2)
NumArcsCSend.int(Xp,int,t=2)
}

Run the code above in your browser using DataLab