niederreiter, a C++ code which implements the Niederreiter quasirandom sequence, using an "arbitrary" base; more correctly, the code is not restricted to using a base of 2, but can instead use a base that is a prime or a power of a prime.
A quasirandom or low discrepancy sequence, such as the Faure, Halton, Hammersley, Niederreiter or Sobol sequences, is "less random" than a pseudorandom number sequence, but more useful for such tasks as approximation of integrals in higher dimensions, and in global optimization. This is because low discrepancy sequences tend to sample space "more uniformly" than random numbers. Algorithms that use such sequences may have superior convergence.
NIEDERREITER is an adaptation of the INLO and GOLO routines in ACM TOMS Algorithm 738. The original code can only compute the "next" element of the sequence. The revised code allows the user to specify the index of the desired element.
The original, true, correct version of ACM TOMS Algorithm 738 is available in the TOMS subdirectory of the NETLIB web site. The version displayed here has been converted to FORTRAN90, and other internal changes have been made to suit me.
The computer code and data files described and made available on this web page are distributed under the MIT license
niederreiter is available in a C++ version and a FORTRAN90 version.
CVT, a C++ code which computes elements of a Centroidal Voronoi Tessellation.
FAURE, a C++ code which computes elements of a Faure quasirandom sequence.
HALTON, a C++ code which computes elements of a Halton quasirandom sequence.
HAMMERSLEY, a C++ code which computes elements of a Hammersley quasirandom sequence.
IHS, a C++ code which computes elements of an improved distributed Latin hypercube dataset.
LATIN_CENTER, a C++ code which computes elements of a Latin Hypercube dataset, choosing center points.
LATIN_EDGE, a C++ code which computes elements of a Latin Hypercube dataset, choosing edge points.
LATIN_RANDOM, a C++ code which computes elements of a Latin Hypercube dataset, choosing points at random.
LCVT, a C++ code which computes a latinized Centroidal Voronoi Tessellation.
NIEDERREITER2, a C++ code which computes a Niederreiter sequence for a base of 2.
NORMAL, a C++ code which computes elements of a sequence of pseudorandom normally distributed values.
SOBOL, a C++ code which computes elements of a Sobol quasirandom sequence.
UNIFORM, a C++ code which computes elements of a uniform pseudorandom sequence.
VAN_DER_CORPUT, a C++ code which computes elements of a van der Corput pseudorandom sequence.
GFARIT must be run first, to set up a tables of addition and multiplication.
GFPLYS must be run second, to set up a table of irreducible polynomials.
Once GFARIT and GFPLYS have been run to set up the tables, the NIEDERREITER routines can be used.