Random numbers from a user defined distribution
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!
引用格式
Adam Nieslony (2026). Random numbers from a user defined distribution (https://ww2.mathworks.cn/matlabcentral/fileexchange/26003-random-numbers-from-a-user-defined-distribution), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux类别
标签
致谢
启发作品: randpdf2(x, y, p, m)
| 版本 | 已发布 | 发行说明 | |
|---|---|---|---|
| 1.0.0.0 |
