SCA_Bose: Functions for regular orthogonal arrays with prime power...

View source: R/SCA_Bose_and_Bush.R

SCA_BoseR Documentation

Functions for regular orthogonal arrays with prime power numbers of levels

Description

Functions for regular orthogonal arrays with prime power numbers of levels q. SCA_Bose creates strength 2 OAs in q^2 runs with q+1 columns at q levels, SCA_Busht creates strength t OAs (including t=2) in q^t runs with q+1 columns at q levels.

Usage

SCA_Bose(q)

SCA_Busht(q, t)

Arguments

q

integer: a prime power

t

integer: the requested strength

Value

Both functions yield a matrix of class ca which is an orthogonal array in q+1 columns with q levels (exception: q+2 columns for t=3 and q a power of 2); the number of rows is q^2 for SCA_Bose and q^t for SCA_Busht. The arrays are rearranged such that their first q columns have their first q rows constant, which is beneficial for some CA constructions, e.g., for powerCA.

Details

Function SCA_Bose obtains the strength 2 Bose constructed CA (q+1 columns in q levels, q^2 runs, q a prime power) and rearranges it into SCA shape. The array actually is a 2PCA, in the sense that its bottom left (q^2-q)xq block is itself a PCA with width of the left parts equal to q (and thus width of the right-hand side equal to zero). Every consecutive qxq block of the matrix consists of columns whose elements are a permutation of the number 0 to q-1. This structure of the matrix is exploited by function productPCA.

Function SCA_Busht obtains the strength t Bush constructed CA (q+1 columns in q levels, q^t runs, q a prime power; exception: for t=3 and q a power of 2, $q+2$ columns are achieved.
In all cases, the array is arranged into SCA shape with k1=q. For t=2, it equals the array created by SCA_Bose. This array is also a 2PCA; however, productPCA is a strength 2 construction only.

Function SCA_Bose uses function createBose, function SCA_Busht uses function createBusht, except for t=3 with q a power of 2, where it uses the internal function createBush3PowerOf2 of this package, which is based on Sherwood et al. (2006).

References

Bose (1938), Bush (1952), Sherwood, Martirosyan and Colbourn (2006)

Examples

A <- SCA_Bose(4)  ## Bose array, arranged as SCA
B <- SCA_Busht(4,2)
all.equal(A, B)
## arrays the same, difference only in attributes

dim(SCA_Busht(4, 3))  ## q+2 columns for t=3 and q=2^s
dim(SCA_Busht(4, 4))  ## q+1 columns otherwise
dim(SCA_Busht(5, 3))  ## q+1 columns otherwise


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