Generate sorted vectors of uniformly distributed variates
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 (2024). 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 Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: Generate random permutation order without using sort()
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |