# NOT RUN {
n<-5
set.seed(1)
dat<-rbind(runifTe.onesixth(n)$gen.points,runifTe(n)$gen.points)
Gam2CS.Te.onesixth(dat[1,],dat[2,],dat)
Gam2CS.Te.onesixth(dat[1,],dat[3,],dat)
Gam2CS.Te.onesixth(c(.2,.2),dat[2,],dat)
Gam2CS.Te.onesixth(c(.2,.1),c(.3,.1),rbind(c(.2,.1),c(.3,.1)))
Gam2CS.Te.onesixth(c(1.2,1.1),c(1.3,1.1),rbind(c(1.2,1.1),c(1.3,1.1)))
n<-nrow(dat)
ind.gam2<-vector()
for (i in 1:(n-1))
for (j in (i+1):n)
{if (Gam2CS.Te.onesixth(dat[i,],dat[j,],dat)==1)
ind.gam2<-rbind(ind.gam2,c(i,j))}
ind.gam2
P1<-c(.2,.1)
P2<-c(.3,.1)
Gam2CS.Te.onesixth(P1,c(.4,.2),dat)
dat.fr<-data.frame(a=dat)
Gam2CS.Te.onesixth(c(.4,.2),P2,dat.fr)
Gam2CS.Te.onesixth(c(.2,.2),dat[2,],dat,ch.data.pnts = TRUE)
#gives an error message since not both points are data points in Dt
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab