File Exchange

image thumbnail

Random numbers from a user defined piecewise polynomial distribution

version 1.0 (2.59 KB) by

RANDPDFS returns pseudorandom values drawn from an arbitrary distribution defined by the pp-form.



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.

Comments and Ratings (0)

MATLAB Release
MATLAB 7.8 (R2009a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video