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!