DataForProductConstructions: Data for productPCA and productCA constructions

PCAcatR Documentation

Data for productPCA and productCA constructions

Description

The data frames PCAcat and DPcat hold the information for strength 2 productPCA or productCA constructions based on cover starter ingredients, Bose SCAs and additional good small CAs.

Usage

PCAcat

DPcat

Format

PCAcat is a data frame with columns v, k and N, type, k1, code and stage. type indicates which types of ingredients are used, k1 has the number of columns of the left-hand side parts in the resulting PCA, code gives the code that is run for constructing the resulting CA, and stage gives the number of ingredients multiplied for obtaining the result.

DPcat is a data frame with columns v, k and N, type, nconst, code and stage. type indicates which types of ingredients are used, nconst has the number of constant rows of the resulting PCA (guaranteed, in a few cases slightly more would be possible), code gives the code that is run for constructing the resulting CA, and stage gives the number of ingredients involved in obtaining the result.

An object of class data.frame with 484 rows and 7 columns.

Details

The functions productPCA and productCA do the calculations, based on ingredients created with the functions SCA_Bose, miscCA, CS_MS, CS_LCDST (f=1 only) and CS_CMMSSY.
The creation of the objects is documented by the R files create_PCAcat.R and create_DPcat.R in the extdata folder for this package, which can be located in the directory inst/extdata of the GitHub repo. That folder also holds the candidate ingredients used in the constructions in the file PCA_cands.rda and DP_cands.rda.

Source

Colbourn and Torres-Jimenez (2013) and the references given below for the ingredients.

References

Colbourn et al. (2006), Colbourn and Torres-Jimenez (2013), Bose (1938), Meagher and Stevens (2005), Colbourn and Keri (2009), Lobb, Colbourn, Danziger, Stevens and Torres-Jimenez (2012, LCDST)

Examples

## an impression of the content
head(PCAcat)
tail(PCAcat)
boxplot(N ~ v, PCAcat, las=1, horizontal=TRUE)

head(DPcat)
tail(DPcat)
boxplot(N ~ v, DPcat, las=1, horizontal=TRUE)

fun <- function(k,v) eCAN(2,k,v)$CAN
fun <- Vectorize(fun)
diff <- PCAcat[,"N"]-fun(PCAcat[,"k"], PCAcat[,"v"])
fivenum(diff)
## 0    8   23  75  376
quot <- PCAcat[,"N"]/fun(PCAcat[,"k"], PCAcat[,"v"])
fivenum(quot)

diff <- DPcat[,"N"]-fun(DPcat[,"k"], DPcat[,"v"])
fivenum(diff)
## 0    8   23  75  376
quot <- DPcat[,"N"]/fun(DPcat[,"k"], DPcat[,"v"])
fivenum(quot)


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