| swapvals | R Documentation |
reduces the number of levels by 1, achieving a reduction of the number of rows by 2. fuse can also reduce the number of levels by more than 1, reducing the number of rows by 2 for each reduction of 1 level.
fuse(D, vprior, vpost, ...)
D |
a CA with |
vprior |
the number of levels prior to applying fuse |
vpost |
the number of levels after applying fuse, must be smaller than vprior |
... |
currently not used |
an array of the same coverage properties and the same number of columns
as D and at most nrow(D) - 2 * (vprior - vpost) rows
with vpost levels per column
Note that there is a variant of fusion, implemented in function fuseBose,
for which the number of runs can be reduced by three; this is applicable for strength 2
with vprior a prime or prime power and up to vprior + 1 columns in D.
Functions Ns_fuse, bestN, and bestCA
include fusion constructions among those competing for being best. Their default
maxfuse=1 works for vprior-vpost=1; it can be increased to allow for
more fusion steps.
Colbourn et al. (2010, CKRS; Lemma 3.1)
fuseBose(), Ns_fuse(), bestN(), bestCA()
set.seed(1212) ## for array randomization
D <- lhs::createBush(11, 12)
table(D)
dim(D)
D10 <- fuse(D, 11, 10) ## reduce by two rows and one level
table(D10)
dim(D10)
coverage(D, 3)
coverage(D10, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.