How can I generate random numbers given its probability distribution function.
古いコメントを表示
How can I generate random numbers given its probability distribution function. I have my cdf as (Fx - Fx^n/n)*(n/(n-1)) where Fx is the cdf of an exponential RV.
回答 (1 件)
Sean de Wolski
2013 年 7 月 19 日
0 投票
slicesample in the Statistics Toolbox will do this:
カテゴリ
ヘルプ センター および File Exchange で Univariate Discrete Distributions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!