|
Latin Hypercube Samples (lhs)
1.0
R, C++, and Rcpp code to generate Latin hypercube samples
|
#include <exception>#include <string>#include <vector>#include <cstdio>#include <cmath>#include <cstdlib>#include <algorithm>#include <stdexcept>#include <sstream>#include <iostream>#include <numeric>Go to the source code of this file.
Namespaces | |
| oacpp | |
Macros | |
| #define | PRINT_OUTPUT std::cout |
| #define | PRINT_WARNINGS true |
| #define | RANGE_DEBUG |
| #define | SUCCESS_CHECK 1 |
| #define | FAILURE_CHECK 0 |
| #define | UNCHECKED_RETURN 0 |
| #define | WARNING_CHECK 2 |
Functions | |
| void | oacpp::ostringstream_runtime_error (const std::ostringstream &msg) |
License: GNU Lesser General Public License (LGPL v3) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser 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 Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Reference:
| #define FAILURE_CHECK 0 |
When a method returns an int to indicate failure
| #define PRINT_OUTPUT std::cout |
A print macro to enable printing with or without R
| #define PRINT_WARNINGS true |
A macro to determine if warnings are printed or thrown as runtime_error
| #define RANGE_DEBUG |
if NDEBUG is not defined, then debug mode is likely enabled
| #define SUCCESS_CHECK 1 |
When a method returns an int to indicate success
| #define UNCHECKED_RETURN 0 |
When a method returns an int which is not normally checked
| #define WARNING_CHECK 2 |
When a method returns an int to indicate a warning message