Orthogonal Array Library
1.0.0
Libray for generating orthogonal arrays based on Art Owen's oa library
|
Go to the documentation of this file.
25 #ifndef CORTHOGONALARRAY_H
26 #define CORTHOGONALARRAY_H
41 #define SOMEMESSAGES 1
193 void addelkempn(
int akn,
int q,
int k,
int* n);
211 void bose(
int q,
int k,
int* n);
236 void bosebush(
int q,
int k,
int *n);
271 void bosebushl(
int lambda,
int q,
int k,
int* n);
292 void bush(
int q,
int k,
int* n);
311 void busht(
int str,
int q,
int k,
int* n);
428 void oarand(
int is,
int js,
int ks,
int ls);
463 int oastr(
bool verbose);
489 bool oastr1(
bool verbose);
520 bool oastr2(
bool verbose);
526 bool oastr3(
bool verbose);
532 bool oastr4(
bool verbose);
539 bool oastrt(
int t,
bool verbose);
560 const bclib::matrix<int> &
getoa();
564 bclib::matrix<int> m_A;
575 void createGaloisField(
int q);
580 void checkDesignMemory();
588 int checkMaxColumns(
int k,
int maxColumns);
597 void checkResult(
int result,
int nvalue,
int * n);
603 PRINT_OUTPUT <<
"\nThe array has " << m_nrow <<
" rows, " << m_ncol <<
" columns and appears\n";
604 PRINT_OUTPUT <<
"to have " << m_q <<
" symbols, since the largest symbol is " << m_q - 1 <<
".\n";
#define PRINT_OUTPUT
A print macro to enable printing with or without R.
Definition: OACommonDefines.h:55
bool oastr2(bool verbose)
Similar to oastr, but only checking strength 2.
Definition: COrthogonalArray.cpp:327
int getq()
symbol accessor
Definition: COrthogonalArray.h:618
void addelkemp3(int q, int k, int *n)
Construct an orthogonal array using the Addelman Kempthorne algorithm.
Definition: COrthogonalArray.cpp:90
Orthogonal Array Class.
Definition: COrthogonalArray.h:55
void addelkempn(int akn, int q, int k, int *n)
Construct an orthogonal array using the Addelman Kempthorne algorithm.
Definition: COrthogonalArray.cpp:102
Orthogonal Array Namespace.
Definition: ak.h:39
Class to define a Galois Field and Methods for operations.
Definition: GaloisField.h:27
int oaagree(bool verbose)
Count the number of columns for which each pair of rows agree.
Definition: COrthogonalArray.cpp:201
int getncols()
column accessor
Definition: COrthogonalArray.h:613
void bosebushl(int lambda, int q, int k, int *n)
Construct an orthogonal array using the Bose-Bush algorithm.
Definition: COrthogonalArray.cpp:142
const bclib::matrix< int > & getoa()
orthogonal array accessor
Definition: COrthogonalArray.h:623
Marsaglia - Zaman universal random number generator.
Definition: runif.h:77
bool oastr3(bool verbose)
Similar to oastr, but only checking strength 3.
Definition: COrthogonalArray.cpp:333
void bush(int q, int k, int *n)
Construct an orthogonal array using the Bush algorithm.
Definition: COrthogonalArray.cpp:173
void bosebush(int q, int k, int *n)
Construct an orthogonal array using the Bose-Bush algorithm.
Definition: COrthogonalArray.cpp:126
int oastr(bool verbose)
Find the strength of an orthogonal array.
Definition: COrthogonalArray.cpp:300
~COrthogonalArray()
Default Destructor.
Definition: COrthogonalArray.h:64
int getnrows()
row accessor
Definition: COrthogonalArray.h:608
void busht(int str, int q, int k, int *n)
Construct an orthogonal array using the Bush algorithm.
Definition: COrthogonalArray.cpp:185
void bose(int q, int k, int *n)
Construct an orthogonal array using the Bose algorithm.
Definition: COrthogonalArray.cpp:114
void oadimen()
Print the dimension of the orthogonal array.
Definition: COrthogonalArray.h:601
bool oastr4(bool verbose)
Similar to oastr, but only checking strength 4.
Definition: COrthogonalArray.cpp:339
bool oastrt(int t, bool verbose)
Similar to oastr, but only checking for strength t.
Definition: COrthogonalArray.cpp:345
bool oastr1(bool verbose)
Similar to oastr, but only checking strength 1.
Definition: COrthogonalArray.cpp:321
void addelkemp(int q, int k, int *n)
Construct an orthogonal array using the Addelman Kempthorne algorithm.
Definition: COrthogonalArray.cpp:78
int oatriple(bool verbose)
Count the number of columns for which each three rows agree.
Definition: COrthogonalArray.cpp:247
COrthogonalArray()
Default Constructor.
Definition: COrthogonalArray.cpp:29
void oarand(int is, int js, int ks, int ls)
Randomize an orthogonal array.
Definition: COrthogonalArray.cpp:286