| N_Hartman74 | R Documentation |
The number of columns of an N x k design A can be squared; the design size is usually not optimal.
Hartman74(A, v, t, B=NULL, ...)
N_Hartman74(N_A, k_A, v, t, ...)
k_Hartman74(N_A, k_A, v, t, ...)
Turan(t, v)
N_A |
run size of the matrix |
k_A |
number of columns of the matrix |
v |
the number of levels (or the number of parts for |
t |
the strength (or the number of vertices for |
... |
currently not used |
A |
an N x k CA of strength |
B |
NULL, or a strength 2 CA in at least |
function Hartman74 returns a strength t CA with k^2 columns (matrix of class ca),
the identical functions N_Hartman74 and k_Hartman74 return a named vector with
the run size N, the number of columns k, the strength t and the number of levels v
from using an N_A x k_A matrix A of strength t in v levels,
assuming this matrix and a suitable B exists (warning, if this is not the case for the Bose
construction for prime power k),
and function Turan returns the maximum number of edges in a v-partite graph
with t vertices, which is used in the construction.
The construction vertically stacks Turan(t,v) copies of column selections from A,
where the ith copy is obtained by picking the A columns according to the elements of the ith column of B.
Eventually, duplicate rows are removed.
The construction requires that the number of columns of B is at least Turan(t,v), which may be impossible if A has too few columns. Sometimes, it can be possible to increase the number of columns for A (see examples).
Hartman (2005)
# Turan numbers (minimum number of columns needed for B)
Turanvec <- Vectorize(Turan)
TuranTable <- outer(1:13, 2:7, function(X, Y) Turanvec(X, Y))
dimnames(TuranTable) <- list(t=1:13, v=2:7)
TuranTable
## the first seven rows remain constant for larger values of v
A <- lhs::createBusht(4,5,3,bRandom=FALSE) ## 64 x 5
D <- Hartman74(A, v=4, t=3)
coverage(D, 3)
dim(D)
eCAN(3,25,4) ## D is far from optimal (roughly factor 1.6)
A <- lhs::createBusht(3,4,4,bRandom=FALSE) ## 81 x 4
A5 <- derive(DoE.base::L243.3.6-1) ## 81 x 5
## optimal CA for strength 4 in 5 3-level columns according to Colbourn tables
# D <- Hartman74(A, v=3, t=4) ## would yield an error, too few columns in Bose design
D <- Hartman74(A5, v=3, t=4)
# coverage(D, 4) ## commented out because of check time
dim(D)
eCAN(4,25,3) ## D is far from optimal (roughly factor 1.44)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.