Learn R Programming

pcds (version 0.1.6)

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

Description

Returns the number of arcs and various other quantities, vectors, and lists for Central Similarity Proximity Catch Digraph (CS-PCD) whose vertices are the data points in Xp in the one middle interval case.

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).

Usage

NumArcsCSint(Xp, int, t, c = 0.5)

Value

A list with the elements

num.arcs

Total number of arcs in all intervals (including the end intervals), i.e., the number of arcs for the entire CS-PCD

num.in.range

Number of Xp points in the interval int

num.in.ints

The vector of number of Xp points in the partition intervals (including the end intervals)

int.num.arcs

The vector of the number of arcs of the components of the CS-PCD in the partition intervals (including the end intervals)

data.int.ind

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.

Arguments

Xp

A set of 1D points which constitute the vertices of CS-PCD.

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.

c

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)\).

Author

Elvan Ceyhan

References

See Also

NumArcsCSmid.int, NumArcsCSend.int, and NumArcsPEint

Examples

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

n<-10
set.seed(1)
Xp<-runif(n,a,b)
NumArcsCSint(Xp,int,t,c)
NumArcsCSint(Xp,int,t,c=.3)
NumArcsCSint(Xp,int,t=1.5,c)
}

Run the code above in your browser using DataLab