Code covered by the BSD License  

Highlights from
Random numbers from a user defined piecewise polynomial distribution

Be the first to rate this file! 7 Downloads (last 30 days) File Size: 2.59 KB File ID: #27693
image thumbnail

Random numbers from a user defined piecewise polynomial distribution

by

 

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

| Watch this File

File Information
Description

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.

Required Products Spline Toolbox
MATLAB release MATLAB 7.8 (R2009a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us