Last chance! 50% off unlimited learning
Sale ends in
Returns I(x2
in x1
and x2
, that is, returns 1 if x2
is in
rv
is the index of the end vertex region x1
resides, with default=NULL
,
and x1
and x2
are distint and either of them are inside interval int
, it returns 0,
but if they are identical, then it returns 1 regardless of their locations (i.e., it allows loops).
See also (ceyhan:revstat-2016;textualpcds).
IndNCSend1D(x1, x2, t, int, rv = NULL)
A 1D point for which the CS proximity region is constructed.
A 1D point to check whether it is inside the proximity region or not.
A positive real number which serves as the expansion parameter in CS proximity region.
A vector of two real numbers representing an interval.
Index of the end interval containing the point, either 1, 2 or NULL
(default=NULL
).
I(x2
in x1
and x2
, that is, returns 1 if x2
is in x1
to x2
), returns 0 otherwise
# NOT RUN {
a<-0; b<-10; int<-c(a,b)
t<-2
IndNCSend1D(15,17,t,int)
IndNCSend1D(15,15,t,int)
IndNCSend1D(1.5,17,t,int)
IndNCSend1D(1.5,1.5,t,int)
IndNCSend1D(-15,17,t,int)
IndNCSend1D(-15,-17,t,int)
a<-0; b<-10; int<-c(a,b)
t<-.5
IndNCSend1D(15,17,t,int)
# }
Run the code above in your browser using DataLab