PaGMO
1.1.5
|
Latin Hypercube Sampling. More...
#include <discrepancy.h>
Public Member Functions | |
lhs (unsigned int dim, unsigned int count) | |
Constructor. More... | |
base_ptr | clone () const |
Clone method. | |
std::vector< double > | operator() () |
Operator () More... | |
std::vector< double > | operator() (unsigned int n) |
Operator (unsigned int n) More... | |
Public Member Functions inherited from pagmo::util::discrepancy::base | |
base (unsigned int dim, unsigned int count=1) | |
Constructor. More... | |
virtual | ~base () |
Virtual destructor. Required as the class contains pure virtual methods. | |
Additional Inherited Members | |
Protected Attributes inherited from pagmo::util::discrepancy::base | |
unsigned int | m_dim |
Hypercube dimension where sampling with low-discrepancy. | |
unsigned int | m_count |
Starting point of the sequence (can be used to skip initial values) | |
Latin Hypercube Sampling.
Class that generates a latin hypersquare sampling in the unit hyper cube. The code wraps original routines from the link below.
Definition at line 230 of file discrepancy.h.
pagmo::util::discrepancy::lhs::lhs | ( | unsigned int | dim, |
unsigned int | count | ||
) |
Constructor.
[in] | dim | dimension of the hypercube |
[in] | number | of points to sample |
Definition at line 14825 of file discrepancy.cpp.
|
virtual |
Operator ()
Returns the next point in the sequence
Implements pagmo::util::discrepancy::base.
Definition at line 14838 of file discrepancy.cpp.
|
virtual |
Operator (unsigned int n)
Returns the n-th point in the sequence
[in] | n | the point along the sequence to be returned |
Implements pagmo::util::discrepancy::base.
Definition at line 14858 of file discrepancy.cpp.