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
oaLHS.h
Go to the documentation of this file.
1 
21 #ifndef OALHS_H
22 #define OALHS_H
23 
24 #include "OACommonDefines.h"
25 #include "matrix.h"
26 #include "CRandom.h"
27 #include "primes.h"
28 #include "order.h"
29 #include "oaLHSUtility.h"
30 #include "COrthogonalArray.h"
31 
32 namespace oalhslib
33 {
44  void oaLHS(int n, int k, const bclib::matrix<int> & oa,
45  bclib::matrix<int> & intlhs,
46  bclib::matrix<double> & lhs, bool bVerbose,
47  bclib::CRandom<double> & oRandom);
48 
57  void oaLHS(int n, int k, const bclib::matrix<int> & oa,
58  bclib::matrix<int> & intlhs,
59  bool bVerbose);
60 
66  void printOAandUnique(const bclib::matrix<int> & oa,
67  const std::vector<std::vector<int> > & uniqueLevelsVector);
68 
77  void replaceOAValues(const bclib::matrix<int> & oa,
78  const std::vector<std::vector<int> > & uniqueLevelsVector,
79  bclib::matrix<int> & intlhs,
80  bclib::CRandom<double> & oRandom,
81  bool isRandom);
82 
92  void generateOALHS(int n, int k, bclib::matrix<double> & oalhs,
93  bool bChooseLargerDesign, bool bVerbose,
94  bclib::CRandom<double> & oRandom);
95 }
96 
97 
98 #endif /* OALHS_H */
oalhslib::oaLHS
void oaLHS(int n, int k, const bclib::matrix< int > &oa, bclib::matrix< int > &intlhs, bclib::matrix< double > &lhs, bool bVerbose, bclib::CRandom< double > &oRandom)
Definition: oaLHS.cpp:38
oalhslib::generateOALHS
void generateOALHS(int n, int k, bclib::matrix< double > &oalhs, bool bChooseLargerDesign, bool bVerbose, bclib::CRandom< double > &oRandom)
Definition: oaLHS.cpp:196
oalhslib::replaceOAValues
void replaceOAValues(const bclib::matrix< int > &oa, const std::vector< std::vector< int > > &uniqueLevelsVector, bclib::matrix< int > &intlhs, bclib::CRandom< double > &oRandom, bool isRandom)
Definition: oaLHS.cpp:145
CRandom.h
primes.h
oaLHSUtility.h
OACommonDefines.h
oalhslib::printOAandUnique
void printOAandUnique(const bclib::matrix< int > &oa, const std::vector< std::vector< int > > &uniqueLevelsVector)
Definition: oaLHS.cpp:100
COrthogonalArray.h
order.h
bclib::CRandom< double >