|
PaGMO
1.1.5
|
Discrepancy namespace. More...
Data Structures | |
| class | base |
| Base low-discrepancy sequence class. More... | |
| class | faure |
| Faure quasi-random point sequence. More... | |
| class | halton |
| Halton quasi-random point sequence. More... | |
| class | lhs |
| Latin Hypercube Sampling. More... | |
| class | simplex |
| Halton sequence projected on a simplex. More... | |
| class | sobol |
| Sobol quasi-random point sequence. More... | |
Typedefs | |
| typedef boost::shared_ptr< base > | base_ptr |
| Smart pointer to the base discrepancy class. | |
Functions | |
| double | van_der_corput (unsigned int n, unsigned int base) |
| Van Der Corput sequence. More... | |
| unsigned int | prime (int n) |
| Returns a prime number. More... | |
| unsigned int | prime_ge (unsigned int n) |
| Returns the smallest prime greater than or equal to n. More... | |
Discrepancy namespace.
Utilities to generate low-discrepancy sequences in the hypercube or on a simplex
| unsigned int pagmo::util::discrepancy::prime | ( | int | n | ) |
Returns a prime number.
Returns any of the first 1600 prime numbers.
| [in] | n | the index of the desired prime number (0 is 1) |
| value_error | if n is larger than 1600 or smaller than 0 |
Definition at line 48 of file discrepancy.cpp.
| unsigned int pagmo::util::discrepancy::prime_ge | ( | unsigned int | n | ) |
Returns the smallest prime greater than or equal to n.
Returns the smallest prime greater than or equal to n
| [in] | n | the number to be bounded. |
| value_error | if n is larger than 13499 |
Definition at line 233 of file discrepancy.cpp.
| double pagmo::util::discrepancy::van_der_corput | ( | unsigned int | n, |
| unsigned int | base | ||
| ) |
Van Der Corput sequence.
Returns the n-th number in the Halton sequence
| [in] | n | selects which number of the Halton sequence to return |
| [in] | base | prime number to be used as a base of the sequence |
Definition at line 26 of file discrepancy.cpp.
1.8.9.1