if (FALSE) {
nx<-100; ny<-5 #try also nx<-1000; ny<-10
r<-1.5 #try also r<-2 or r<-1.25
set.seed(1)
Xp<-cbind(runif(nx,0,1),runif(nx,0,1))
Yp<-cbind(runif(ny,0,.25),runif(ny,0,.25))+cbind(c(0,0,0.5,1,1),c(0,1,.5,0,1))
#try also Yp<-cbind(runif(ny,0,1),runif(ny,0,1))
plotDeltri(Xp,Yp,xlab="",ylab="")
TSDomPENorm(Xp,Yp,r) #try also TSDomPENorm(Xp,Yp,r, alt="l")
TSDomPENorm(Xp,Yp,1.25,ch=TRUE)
#or try
ndt<-num.del.tri(Yp)
TSDomPENorm(Xp,Yp,r,ndt=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
}
Run the code above in your browser using DataLab