nx<-20; ny<-4 #try also nx<-1000; ny<-10
r<-1.4 #try also r<-1.5
set.seed(1)
Xp<-cbind(runif(nx,0,1),runif(nx,0,1))
Yp<-cbind(runif(ny,0,1),runif(ny,0,1))
oldpar <- par(no.readonly = TRUE)
plotDeltri(Xp,Yp,xlab="",ylab="")
par(oldpar)
PEdomMTnd(Xp,Yp,r)
TSDomPEBin(Xp,Yp,r,alt="t")
TSDomPEBin(Xp,Yp,r,alt="l")
TSDomPEBin(Xp,Yp,r,alt="g")
TSDomPEBin(Xp,Yp,r,ch=TRUE)
TSDomPEBin(Xp,Yp,r=1.25)
#or try
ndt<-NumDelTri(Yp)
TSDomPEBin(Xp,Yp,r,nt=ndt)
#values might differ due to the random of choice of the three centers M1,M2,M3
#for the non-degenerate asymptotic distribution of the domination number
TSDomPEBin(Xp,Yp,r)
TSDomPEBin(Xp,Yp[1:3,],r)
TSDomPEBin(Xp,rbind(Yp,Yp),r)
dat.fr<-data.frame(a=Xp)
TSDomPEBin(dat.fr,Yp,r)
dat.fr<-data.frame(a=Yp)
TSDomPEBin(Xp,dat.fr,r)
Run the code above in your browser using DataLab