Latin Hypercube Samples (lhs)
1.0
R, C++, and Rcpp code to generate Latin hypercube samples
|
Functions | |
void | randomizeOA (Rcpp::IntegerMatrix &oa, int q) |
template<class T > | |
void | convertToIntegerMatrix (const bclib::matrix< T > &A, Rcpp::IntegerMatrix &rcppA) |
template<class T , class U > | |
void | convertToRcppMatrix (const bclib::matrix< T > &A, U &rcppA) |
template<class T , class U > | |
void | convertToMatrix (const U &rcppA, bclib::matrix< T > &A) |
A namespace for R connection utilities
void oarutils::convertToIntegerMatrix | ( | const bclib::matrix< T > & | A, |
Rcpp::IntegerMatrix & | rcppA | ||
) |
A method to convert an oacpp::matrix to an Rcpp::IntegerMatrix
T | an atomic type that is convertible to int through a static_cast<int>(T t) |
A | an orthogonal array matrix |
rcppA | the output Rcpp::IntegerMatrix |
void oarutils::convertToMatrix | ( | const U & | rcppA, |
bclib::matrix< T > & | A | ||
) |
A method to convert a Rcpp::NumericMatrix or Rcpp::IntegerMatrix to a bclib::matrix
T | an atomic type that matches the Rcpp type |
U | an Rcpp matrix type |
A | a bclib::matrix |
rcppA | a Rcpp matrix |
void oarutils::convertToRcppMatrix | ( | const bclib::matrix< T > & | A, |
U & | rcppA | ||
) |
A method to convert a bclib::matrix to an Rcpp::NumericMatrix or Rcpp::IntegerMatrix
T | an atomic type that matches the Rcpp type |
U | an Rcpp matrix type |
A | a bclib matrix |
rcppA | a Rcpp matrix |
void oarutils::randomizeOA | ( | Rcpp::IntegerMatrix & | oa, |
int | q | ||
) |
permute the entries of each column in an orthogonal array
oa | A Rcpp::IntegerMatrix containing an orthogonal array |
q | The number of unique entries in each column |