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!