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
utilityLHS.h File Reference
#include "LHSCommonDefines.h"

Go to the source code of this file.

Classes

struct  lhslib::squareDifference< T >
 
struct  lhslib::invert< T, W >
 

Namespaces

 lhslib
 

Functions

bool lhslib::isValidLHS (const bclib::matrix< int > &result)
 
bool lhslib::isValidLHS (const bclib::matrix< double > &result)
 
template<class T >
void lhslib::rank (const std::vector< T > &toRank, std::vector< int > &ranks)
 
void lhslib::initializeAvailableMatrix (bclib::matrix< int > &avail)
 
template<class T >
void lhslib::lhsPrint (const bclib::matrix< T > &A)
 
template<class T >
lhslib::calculateDistanceSquared (const std::vector< T > &A, const std::vector< T > &B)
 
template<class T , bool ISROWWISE>
lhslib::calculateDistanceSquared (const typename bclib::matrixConstIter< T, ISROWWISE > Abegin, const typename bclib::matrixConstIter< T, ISROWWISE > Aend, const typename bclib::matrixConstIter< T, ISROWWISE > Bbegin)
 
template<class T >
void lhslib::calculateDistance (const bclib::matrix< T > &mat, bclib::matrix< double > &result)
 
template<class T >
double lhslib::sumInvDistance (const bclib::matrix< T > &A)
 
template<class T >
double lhslib::sumInvDistance_deprecated (const bclib::matrix< T > &A)
 
template<class T >
void lhslib::copyMatrix (bclib::matrix< T > &copyTo, const bclib::matrix< T > &copyFrom)
 
template<class T >
double lhslib::calculateSOptimal (const bclib::matrix< T > &mat)
 
void lhslib::runif_std (unsigned int n, std::vector< double > &output, bclib::CRandom< double > &oRandom)
 
template<class T1 >
void lhslib::runifint (unsigned int n, T1 min, T1 max, std::vector< T1 > &output, bclib::CRandom< double > &oRandom)
 
template<class T1 >
void lhslib::runifint (T1 min, T1 max, T1 *output, bclib::CRandom< double > &oRandom)
 

Detailed Description

Author
Robert Carnell

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/.