# NOT RUN {
## Example 1: two non-equivalent stars of PG(4,2)
data(starn5t3a)
data(starn5t3b)
# test their equivalence
(test1 <- checkStarEquivalence(starn5t3a, starn5t3b))
## Example 2: two equivalent stars of PG(7,2) consisting of 6-flats
data(starn8t5a)
#permute the flats and flat order of starn8t5a to create a second equivalent spread equiv_starn8t5a.
equiv_starn8t5a <- starn8t5a
dims <- dim(equiv_starn8t5a)
for(i in 1:(dims[3])){
equiv_starn8t5a[,,i] <- equiv_starn8t5a[,sample(1:dims[2], dims[2]),i]
}
equiv_starn8t5a <- starn8t5a[,,sample(1:dims[3], dims[3])]
(test2 <- checkStarEquivalence(starn8t5a, equiv_starn8t5a))
# }
Run the code above in your browser using DataLab