# NOT RUN {
A<-c(0,0); B<-c(1,0); C<-c(1/2,sqrt(3)/2);
Te<-rbind(A,B,C);
n<-10
set.seed(1)
dat<-runifTe(n)$gen.points
M<-as.numeric(runifTe(1)$g) #try also M<-c(.6,.2)
r<-1.5
S<-rbind(dat[1,],dat[2,]) #try also S<-c(.5,.5)
IndNPETeSet(S,dat[3,],r,M)
IndNPETeSet(S,dat[3,],r=1,M)
IndNPETeSet(S,dat[3,],r=1.5,M)
S<-rbind(dat[1,],dat[2,],dat[3,],dat[5,])
IndNPETeSet(S,dat[3,],r,M)
IndNPETeSet(S,dat[6,],r,M)
IndNPETeSet(S,dat[6,],r=1.25,M)
S<-rbind(c(.1,.1),c(.3,.4),c(.5,.3))
IndNPETeSet(S,dat[3,],r,M)
IndNPETeSet(c(.2,.5),dat[2,],r,M)
IndNPETeSet(dat,c(.2,.5),r,M)
IndNPETeSet(dat,dat[2,],r,M)
IndNPETeSet(c(.2,.5),c(.2,.5),r,M)
IndNPETeSet(dat[5,],dat[2,],r,M)
S<-rbind(dat[1,],dat[2,],dat[3,],dat[5,],c(.2,.5))
IndNPETeSet(S,dat[3,],r,M)
P<-c(.4,.2)
S<-dat[c(1,3,4),]
IndNPETeSet(dat,P,r,M)
IndNPETeSet(rbind(S,S),P,r,M)
dat.fr<-data.frame(a=S)
IndNPETeSet(dat.fr,P,r,M)
# }
Run the code above in your browser using DataLab