| crossCAs | R Documentation |
Function to construct a strength t CA in k columns at v*w levels from a strength t CA in k columns at v levels and a strength t CA in k columns at w levels
crossCAs(A, B, t=NULL, check=FALSE, ...)
A |
an N x k CA of strength |
B |
an M x k CA of strength |
t |
strength of |
check |
logical; if TRUE, checks required strength of ingoing CAs (may substantially increase run time for larger CAs, especially for |
... |
currently not used |
Function crossCAs yields a CA(NM, t, k, vw) (N*M x k matrix of class ca).
The returned matrix has its levels coded like the ingoing matrices, i.e., integer starting with 0 or 1.
Function crossCAs yields a CA(NM, t, k, vw) by combining the corresponding columns of the two CAs
into v*w levels, according to, e.g., Theorem 2.8 of Zhang et al. (2014).
Chateauneuf and Kreher (2002), Zhang et al. (2014)
################################################
## crossCAs
################################################
## two CAs with four columns each and strength 3
A <- lhs::createBush(3, 4, bRandom=FALSE) ## strength 3, 4 columns in 3 levels
dim(A)
B <- lhs::createBush(4, 4, bRandom=FALSE) ## strength 3, 4 columns in 4 levels
dim(B)
## product array with 3*4=12 levels and 27*64=1728 runs
E <- crossCAs(A, B, 3)
dim(E)
tail(E)
coverage(E, 3)
eCAN(3, 4, 12) ## the CA is optimal (as of April 2025)
eCAK(3, 1728, 12) ## the optimal strength 3 12-level CA accommodates two more columns,
## and even in an OA (12 is not a prime power, thus 13 columns not possible)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.