PaGMO
1.1.5
|
Base low-discrepancy sequence class. More...
#include <discrepancy.h>
Public Member Functions | |
base (unsigned int dim, unsigned int count=1) | |
Constructor. More... | |
virtual std::vector< double > | operator() ()=0 |
Operator () More... | |
virtual std::vector< double > | operator() (unsigned int n)=0 |
Operator (size_t n) More... | |
virtual base_ptr | clone () const =0 |
Clone method for dynamic polymorphism. | |
virtual | ~base () |
Virtual destructor. Required as the class contains pure virtual methods. | |
Protected Attributes | |
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) | |
Base low-discrepancy sequence class.
This class cannot be instantiated as it contains pure virtual members. All classes that generate quasi-random sequences with low-discrepancy must inherit from this class.
Definition at line 78 of file discrepancy.h.
|
inline |
Constructor.
[in] | dim | hypercube dimension |
[in] | count | starting point of the sequence |
Definition at line 86 of file discrepancy.h.
|
pure virtual |
Operator ()
Returns the next point in the sequence. Must be implemented in the derived class
Implemented in pagmo::util::discrepancy::lhs, pagmo::util::discrepancy::sobol, pagmo::util::discrepancy::simplex, pagmo::util::discrepancy::faure, and pagmo::util::discrepancy::halton.
|
pure virtual |
Operator (size_t n)
Returns the n-th point in the sequence. Must be implemented in the derived class
[in] | n | the point along the sequence to be returned |
Implemented in pagmo::util::discrepancy::lhs, pagmo::util::discrepancy::sobol, pagmo::util::discrepancy::simplex, pagmo::util::discrepancy::faure, and pagmo::util::discrepancy::halton.