PaGMO  1.1.5
Public Member Functions
pagmo::util::discrepancy::halton Class Reference

Halton quasi-random point sequence. More...

#include <discrepancy.h>

Inheritance diagram for pagmo::util::discrepancy::halton:
Inheritance graph
[legend]

Public Member Functions

 halton (unsigned int dim, unsigned int count=1)
 Constructor. More...
 
base_ptr clone () const
 Clone method.
 
std::vector< double > operator() ()
 Operator () More...
 
std::vector< double > operator() (unsigned int n)
 Operator (size_t 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)
 

Detailed Description

Halton quasi-random point sequence.

Class that generates a quasi-random sequence of points in the unit hyper-cube using the Halton sequence

See also
http://en.wikipedia.org/wiki/Halton_sequence
Author
dario.nosp@m..izz.nosp@m.o@gma.nosp@m.il.c.nosp@m.om

Definition at line 125 of file discrepancy.h.

Constructor & Destructor Documentation

pagmo::util::discrepancy::halton::halton ( unsigned int  dim,
unsigned int  count = 1 
)

Constructor.

Parameters
[in]dimdimension of the hypercube
[in]countstarting point of the sequence (the first point is [0.5,0.33333, ....])
Exceptions
value_errorif dim not in [1,10]

Definition at line 14631 of file discrepancy.cpp.

Member Function Documentation

std::vector< double > pagmo::util::discrepancy::halton::operator() ( )
virtual

Operator ()

Returns the next point in the sequence

Returns
an std::vector<double> containing the next point

Implements pagmo::util::discrepancy::base.

Definition at line 14654 of file discrepancy.cpp.

std::vector< double > pagmo::util::discrepancy::halton::operator() ( unsigned int  n)
virtual

Operator (size_t n)

Returns the n-th point in the sequence

Parameters
[in]nthe point along the sequence to be returned
Returns
an std::vector<double> containing the n-th point

Implements pagmo::util::discrepancy::base.

Definition at line 14669 of file discrepancy.cpp.


The documentation for this class was generated from the following files: