Random numbers from a user defined piecewise polynomial distribution

RANDPDFS returns pseudorandom values drawn from an arbitrary distribution defined by the pp-form.
527 Downloads
Updated 21 May 2010

View License

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 (2024). Random numbers from a user defined piecewise polynomial distribution (https://www.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 Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0