image thumbnail

Generate sorted vectors of uniformly distributed variates

version 1.0.0.0 (623 Bytes) by Statovic
Efficiently generate sorted p-vectors of variates drawn uniformly from [0,1]

889 Downloads

Updated 28 Oct 2008

No License

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

Cite As

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
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!