1. one option is built in randsample with weighted option, you sample with certain weights.
There are CFX options
2. Discrete (multinomial) distribution sampler
http://www.mathworks.com/matlabcentral/fileexchange/25481-discrete-multinomial-distribution-sampler
3. randp
http://www.mathworks.com/matlabcentral/fileexchange/8891
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.