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_r.cpp File Reference
#include "oalhs_r.h"

Functions

RcppExport SEXP oa_to_lhs (SEXP n, SEXP k, SEXP oa, SEXP bverbose)
 
RcppExport SEXP create_oalhs (SEXP n, SEXP k, SEXP bChooseLargerDesign, SEXP bverbose)
 

Detailed Description

Author
Robert Carnell
License:\n GNU General Public License (GPL v3)
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Function Documentation

◆ create_oalhs()

RcppExport SEXP create_oalhs ( SEXP  n,
SEXP  k,
SEXP  bChooseLargerDesign,
SEXP  bverbose 
)

Create an Orthogonal Array Latin hypercube sample

Parameters
nthe number of rows in the LHS
kthe number of parameters or columns in the LHS
bChooseLargerDesignshould a larger design than the one requested be created to match the oa generator
bverboseshould information be printed d
Returns
a numeric (double) matrix

◆ oa_to_lhs()

RcppExport SEXP oa_to_lhs ( SEXP  n,
SEXP  k,
SEXP  oa,
SEXP  bverbose 
)

Create a Latin hypercube sample from an orthogonal array

Parameters
nthe number of rows in the LHS
kthe number of parameters or columns in the LHS
oathe orthogonal array to be used as the basis for the LHS
bverboseshould information be printed d
Returns
a numeric (double) matrix