powerCA: Power constructions

View source: R/powerCA.R

powerCAR Documentation

Power constructions

Description

Functions to construct a strength t CA in with k columns at v levels based on the power construction by Colbourn and Torres-Jimenez (2010)

Usage

powerCA(t, k, v, type="CT", ...)

N_powerCT(t, k, v, type="CT", ...)

k_powerCT(t, N, v, type="CT", ...)

Arguments

t

integer, strength of the CA

k

integer, number of columns of the CA

v

integer, number of levels of the CA

type

character string, currently only CT is implemented

...

currently not used

N

integer, number of runs of the CA

Value

Function powerCA returns a strength t CA in N_powerCA(t, k, v) runs and k columns. k_powerCA(t, N, v) returns the maximum number of columns that can be achieved with N runs when requesting strength t at v levels.

Details

The function powerCA implements constructions according to Colbourn and Torres-Jimenez (2010); it is based on the data.frame object powerCTcat that contains scenarii for which the power construction with ideal ingredients yields the smallest possible CAs according to colbournBigFrame (and for which the construction string in colbournBigFrame is understood). Many rows of the data.frame object powerCTcat refer to instances for which the resulting design is so large that its construction requires a computer with massive resources (and the naive call of powerCA will crash R or even the computer); it is therefore recommended to inspect the expected run size with function N_powerCT before calling the construction function.

The actual arrays that can be generated with this package may be larger than the best possible ones if the perfect ingredients are not (yet) available; they may also be somewhat smaller, because this package makes use of the maximum number of constant rows of the ingredient CAs where possible, whereas the numbers in colbournBigFrame do not always do that (it appears that they do it where the Source entry contains "c" next to the respective ingredient).

The construction uses functions Tred, createDHF, and DHHF2CA, as well as CA construction functions as indicated in powerCTcat.

References

Colbourn and Torres-Jimenez (2010)

Examples

Ns(3, 25, 2)  ## not a good case, but small enough for checking coverage
D <- powerCA(3, 25, 2)
dim(D)
coverage(D, 3)

## a larger example
Ns(6, 25, 2) ## way too large for so few columns
ks(6, 5321, 2) ## would cover many more columns
eCAN(6, 5321, 2) ## eCAN is PowerCZ


CAs documentation built on Nov. 29, 2026, 1:06 a.m.