m<-4
X<-BIB(m)
n<-1
mat<-X$BIB
Y<-Resolvable(n,mat) #Extract the RBIB
n<-1
mat<-X$BIB
X2<-Gen(n,mat) #Extract the BIBD of the second generation
## Not run:
# #Algorithm of the 3rd example in the paper : (Abla Boudraa & al) IJRRAS.
# #(17), Issue 2 (2013).
#
# bib<-BIB(3)$BIB
# mat<-NULL
# for(i in 1:15){mat[[i]]<-Gen(i,bib)$BIB2}
# x<-Reduce("rbind",mat)
# e<-dim(x)[1]
# b<-dim(x)[2]
# v<-bib[1,]
# for (i in 1:e) {for (j in 1:b) {if (any (x[i,j]==v)) {x[i,j]<-0}}}
# for (i in e:1) { if (all (x[i,]==0)) {x<-x[-i,]}}
# s<-x[1,]
# s<-s[s>0]
# h<-length(s)
# f<-dim(x)[1]
# x1<-matrix(nrow=f, ncol=h)
# for (i in 1:f) {x1[i,]<-x[i,][x[i,]>0]}
# A<-unique(x1)
# UD<-Uniform(A)
# ## End(Not run)
Run the code above in your browser using DataLab