Generate random integers given probability distribution

The code generates the random integers for the probability distribution (probability mass function (PMF)) defined by the vector.
37 download
Aggiornato 18 lug 2019

Visualizza la licenza

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 Linux
Categorie
Scopri di più su Random Number Generation in Help Center e MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.0.0