NIEDERREITER
The Niederreiter Quasirandom Sequence [Arbitrary base]


NIEDERREITER is a FORTRAN90 library, using single precision arithmetic, 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 adapation 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.

Related Data and Programs:

CVT is a FORTRAN90 library of routines which computes elements of a Centroidal Voronoi Tessellation.

FAURE is a FORTRAN90 library of routines which computes elements of a Faure quasirandom sequence.

GRID is a FORTRAN90 library of routines which computes elements of a grid dataset.

HALTON is a FORTRAN90 library of routines which computes elements of a Halton quasirandom sequence.

HAMMERSLEY is a FORTRAN90 library of routines which computes elements of a Hammersley quasirandom sequence.

HEX_GRID is a FORTRAN90 library of routines which computes elements of a hexagonal grid dataset.

HEX_GRID_ANGLE is a FORTRAN90 library of routines which computes elements of an angled hexagonal grid dataset.

IHS is a FORTRAN90 library of routines which computes elements of an improved distributed Latin hypercube dataset.

LATIN_CENTER is a FORTRAN90 library of routines which computes elements of a Latin Hypercube dataset, choosing center points.

LATIN_EDGE is a FORTRAN90 library of routines which computes elements of a Latin Hypercube dataset, choosing edge points.

LATIN_RANDOM is a FORTRAN90 library of routines which computes elements of a Latin Hypercube dataset, choosing points at random.

LCVT is a FORTRAN90 library of routines which computes a latinized Centroidal Voronoi Tessellation.

NIEDERREITER is also available in a C++ version and a MATLAB version.

NIEDERREITER2 is a FORTRAN90 library of routines which computes a Niederreiter sequence for a base of 2.

NORMAL is a FORTRAN90 library which computes elements of a sequence of pseudorandom normally distributed values.

SOBOL is a FORTRAN90 library of routines which computes elements of a Sobol quasirandom sequence.

TOMS738 is a FORTRAN90 version of ACM TOMS algorithm 738, for evaluating Niederreiter sequences.

UNIFORM is a FORTRAN90 library of routines which computes elements of a uniform pseudorandom sequence.

VAN_DER_CORPUT is a FORTRAN90 library of routines which computes elements of a van der Corput pseudorandom sequence.

Reference:

  1. Paul Bratley and Bennett Fox,
    Algorithm 659: Implementing Sobol's Quasirandom Sequence Generator,
    ACM Transactions on Mathematical Software,
    Volume 14, Number 1, pages 88-100, 1988.
  2. Paul Bratley, Bennett Fox, Harald Niederreiter,
    Algorithm 738: Programs to Generate Niederreiter's Low-Discrepancy Sequences,
    ACM Transactions on Mathematical Software,
    Volume 20, Number 4, pages 494-495, 1994.
  3. Paul Bratley, Bennett Fox, Harald Niederreiter,
    Implementation and Tests of Low Discrepancy Sequences,
    ACM Transactions on Modeling and Computer Simulation,
    Volume 2, Number 3, pages 195-213, 1992.
  4. Bennett Fox,
    Algorithm 647: Implementation and Relative Efficiency of Quasirandom Sequence Generators,
    ACM Transactions on Mathematical Software,
    Volume 12, Number 4, pages 362-376, 1986.
  5. Rudolf Lidl, Harald Niederreiter,
    Finite Fields,
    Second Edition,
    Cambridge University Press, 1997,
    ISBN: 0521392314,
    LC: QA247.3.L53
  6. Harald Niederreiter,
    Low-discrepancy and low-dispersion sequences,
    Journal of Number Theory,
    Volume 30, 1988, pages 51-70.
  7. Harald Niederreiter,
    Random Number Generation and quasi-Monte Carlo Methods,
    SIAM, 1992,
    ISBN13: 978-0-898712-95-7.

Source Code:

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.

Examples and Tests:

List of Routines:

You can go up one level to the FORTRAN90 source codes.


Last revised on 14 September 2007.