halton, a MATLAB code which computes elements of a Halton Quasi Monte Carlo (QMC) sequence using a simple interface.
A more sophisticated library is available in HALTON_ADVANCED, but I find this simple version to be preferable for everyday use!
The standard M-dimensional Halton sequence is simply composed of M 1-dimensional van der Corput sequences, using as bases the first M primes.
The HALTON function will return the M-dimensional element of this sequence with index I.
The HALTON_SEQUENCE function will return the M-dimensional elements of this sequence with indices I1 through I2.
The HALTON_INVERSE function accepts an M-dimensional value, presumably computed by HALTON, and returns its original index I.
The HALTON_BASE function allows the user to replace the standard basis of primes with some other choice.
The computer code and data files described and made available on this web page are distributed under the MIT license
halton is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and a Python version.
cvt, a MATLAB code which computes elements of a Centroidal Voronoi Tessellation.
faure, a MATLAB code which computes elements of a Faure sequence.
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 elements of a Latin Hypercube dataset, choosing center points.
latin_edge, a MATLAB code which computes elements of a Latin Hypercube dataset, choosing edge points.
latin_random, a MATLAB code which computes elements of a Latin Hypercube dataset, choosing points at random.
lattice_rule, a MATLAB code which approximates multidimensional integrals using lattice rules.
niederreiter2, a MATLAB code which computes elements of a Niederreiter sequence using base 2.
sobol, a MATLAB code which computes elements of a Sobol sequence.
uniform, a MATLAB code which computes elements of a uniform pseudorandom sequence.
van_der_corput, a MATLAB code which computes elements of a 1D van der Corput Quasi Monte Carlo (QMC) sequence using a simple interface.