Latin Hypercube Samples (lhs)  1.0
R, C++, and Rcpp code to generate Latin hypercube samples
All Classes Namespaces Files Functions Variables Typedefs Macros Pages
oacpp::oaaddelkemp Namespace Reference

Functions

int addelkemp3check (int q, int p, int ncol)
 
int akeven (GaloisField &gf, int *kay, std::vector< int > &b, std::vector< int > &c, std::vector< int > &k)
 
int akodd (GaloisField &gf, int *kay, std::vector< int > &b, std::vector< int > &c, std::vector< int > &k)
 
void addelkempncheck (int q, int p, int akn, int ncol)
 
int addelkempn (GaloisField &gf, int akn, bclib::matrix< int > &A, int ncol)
 
int addelkemp3 (GaloisField &gf, bclib::matrix< int > &A, int ncol)
 

Detailed Description

Addelkemp class

Function Documentation

◆ addelkemp3()

int oacpp::oaaddelkemp::addelkemp3 ( GaloisField gf,
bclib::matrix< int > &  A,
int  ncol 
)

The addelkemp algorithm for n=3

Parameters
gfgalois field
Athe orthogonal array
ncolthe number of columns
Returns
an indicator of success

◆ addelkemp3check()

int oacpp::oaaddelkemp::addelkemp3check ( int  q,
int  p,
int  ncol 
)

Check that the parameters of the addelkemp3 algorithm are consistent (ncol <= 2q^2+2q+1

Parameters
qthe order of the Galois field or the number of symbols
pthe prime basis of the Galois field
ncolthe number of columns
Returns
an indicator of success

◆ addelkempn()

int oacpp::oaaddelkemp::addelkempn ( GaloisField gf,
int  akn,
bclib::matrix< int > &  A,
int  ncol 
)

The addelkemp algorithm for general n to produce OA(2q^n,ncol,q,2)

Parameters
gfa Galois Field
aknthe akn algorithm produces OA(2q^n,ncol,q,2)
Athe orthogonal array
ncolthe number of columns
Returns
an indicator of success

◆ addelkempncheck()

void oacpp::oaaddelkemp::addelkempncheck ( int  q,
int  p,
int  akn,
int  ncol 
)

Check that the parameters are consistent for the addelkempn algorithm

Parameters
qthe order of Galois field or the number of symbols
pthe prime basis of the Galois field
aknthe akn algorithm produces OA(2q^n,ncol,q,2)
ncolthe number of columns
Returns
an indicator of success
Exceptions
runtime_exception

◆ akeven()

int oacpp::oaaddelkemp::akeven ( GaloisField gf,
int *  kay,
std::vector< int > &  b,
std::vector< int > &  c,
std::vector< int > &  k 
)

Addelkemp algorithm for even p

Parameters
gfa Galois field
kaythe number of columns
boriginal Addelkemp variable
coriginal Addelkemp variable
koriginal Addelkemp variable
Returns
an indicator of success

◆ akodd()

int oacpp::oaaddelkemp::akodd ( GaloisField gf,
int *  kay,
std::vector< int > &  b,
std::vector< int > &  c,
std::vector< int > &  k 
)

Addelkemp algorithm for odd p

Parameters
gfa Galois field object
kaythe number of columns
boriginal Addelkemp variable
coriginal Addelkemp variable
koriginal Addelkemp variable
Returns
an indicator of success