rejection_sample_test, a MATLAB code which calls rejection_sample(), which demonstrates acceptance/rejection sampling.
The information on this web page is distributed under the MIT license.
rejection_sample, a MATLAB code which demonstrates acceptance/rejection sampling.