Efficiently generate n sorted p-vectors of variates uniformly from [0,1], i.e. subject to each vector satisfying
x_1 <= x_2 <= x_3 <= ... <= x_p
Imlements the algorithm from:
(1) Generating Sorted Lists of Random Numbers
Jon Louis Bentley and James B. Saxe
ACM Transactions on Mathematical Software (TOMS)
Volume 6, Issue 3, September 1980
Statovic (2021). Generate sorted vectors of uniformly distributed variates (https://www.mathworks.com/matlabcentral/fileexchange/21919-generate-sorted-vectors-of-uniformly-distributed-variates), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!