Generate random integers given probability distribution
Versione 1.0.0 (1,25 KB) da
NAVNEET GARG
The code generates the random integers for the probability distribution (probability mass function (PMF)) defined by the vector.
pmfRND Ouputs random integers for given PMF
x = pmfRND(f,X) returns mxn matrix whose values are Zipf distributed,
where f > 0 is the PMF (discrete PDF) such that sum(f) = 1;
X = [m,n] is the size of desired ouput random matrix.
Cita come
NAVNEET GARG (2025). Generate random integers given probability distribution (https://it.mathworks.com/matlabcentral/fileexchange/72186-generate-random-integers-given-probability-distribution), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2019a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Scopri di più su Random Number Generation in Help Center e MATLAB Answers
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0 |
