walker_sample_test, a MATLAB code which calls walker_sample(), which efficiently samples a discrete probability vector.
The information on this web page is distributed under the MIT license.
walker_sample, a MATLAB code which efficiently samples a discrete probability vector using Walker sampling.