Random numbers from a user defined distribution

creturns the matrix of random numbers from user defined probability density distribution.
3,9K download
Aggiornato 2 dic 2009

Visualizza la licenza

RANDPDF returns the matrix of random numbers from probability density distribution defined in p and px. p are the density (the y axis) and px are the value (the x axis) of the pdf. p and px must be of the same length. dim define the output matrix dimensions, for example dim=[100 3] define the 100x3 two dimensional matrix with 300 random numbers.

REMEMBER: This is not a really random number generator but only some kind of transformation of uniformly distributed pseudorandom numbers to desired pdf!

Cita come

Adam Nieslony (2025). Random numbers from a user defined distribution (https://it.mathworks.com/matlabcentral/fileexchange/26003-random-numbers-from-a-user-defined-distribution), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R14SP3
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Random Number Generation in Help Center e MATLAB Answers
Riconoscimenti

Ispirato: randpdf2(x, y, p, m)

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.0