Random Sample from Discrete PDF
Inverse transform sampling to generate random sample from pdf given by domain x and p(x).
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Cite As
Joshua Stough (2026). Random Sample from Discrete PDF (https://in.mathworks.com/matlabcentral/fileexchange/37698-random-sample-from-discrete-pdf), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Random Numbers from a Discrete Distribution
General Information
- Version 1.0.0 (2.04 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0 |