sobol, a MATLAB code which computes elements of the Sobol quasirandom sequence, by Bennett Fox.
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.
SOBOL is an adapation of the INSOBL and GOSOBL routines in ACM TOMS Algorithm 647 and ACM TOMS Algorithm 659. 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.
A remark by Joe and Kuo shows how to extend the algorithm from the original maximum spatial dimension of 40 up to a maximum spatial dimension of 1111. The Fortran90 and C++ versions of the code has been updated in this way, but updating the MATLAB code has not been simple, since MATLAB doesn't support 64 bit integers.
The original, true, correct versions of ACM TOMS Algorithm 647 and ACM TOMS Algorithm 659 are available in the TOMS subdirectory of the NETLIB web site.
The information on this web page is distributed under the MIT license.
sobol is available in a C++ version and a Fortran90 version and a MATLAB version and a Python version
cvt, a MATLAB code which computes points in a centroidal voronoi tessellation.
faure, a MATLAB code which computes faure sequences.
halton, a MATLAB code which computes Halton sequences.
hammersley, a MATLAB code which computes elements of a Hammersley quasi monte carlo (qmc) sequence, using a simple interface.
latin_center, a MATLAB code which computes latin square data choosing the center value.
latin_edge, a MATLAB code which computes latin square data choosing the edge value.
latin_random, a MATLAB code which computes latin square data choosing a random value in the square.
lattice_rule, a MATLAB code which approximates multidimensional integrals using lattice rules.
niederreiter2, a MATLAB code which computes Niederreiter sequences with base 2.
uniform, a MATLAB code which computes uniform random values.
van_der_corput, a MATLAB code which computes van der corput sequences.
Original Fortran77 version by Bennett Fox; This version by John Burkardt.