Random numbers from a user defined piecewise polynomial distribution
Version 1.0.0.0 (2.59 KB) by
Luigi Sanguigno
RANDPDFS returns pseudorandom values drawn from an arbitrary distribution defined by the pp-form.
All the information required to compute the random sequence are extracted from the pp-form structure, in particular the lowest and the highest generated numbers corresponds to the first and last break of the pp form respectively.
RANDPDFS uses FNINT to compute the cumulative distribution function, therefore spline toolbox has to be accessible to allow RANDPDFS to work properly.
Cite As
Luigi Sanguigno (2026). Random numbers from a user defined piecewise polynomial distribution (https://se.mathworks.com/matlabcentral/fileexchange/27693-random-numbers-from-a-user-defined-piecewise-polynomial-distribution), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2009a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Splines in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
