Generate Random numbers from a 2 D probability density function
이전 댓글 표시
i have the follow pdf : f(B,S); how can i generate random values for B and S that follow this distribution?? can someone help me??
답변 (2개)
Sky Sartorius
2017년 10월 3일
0 개 추천
Conceptually, you can generate random numbers for any arbitrary distributions by
- Converting the pdf to a cdf.
- Generating uniform random numbers (from 0 to 1) using rand
- Mapping the uniform random numbers to the cdf.
Image Analyst
2017년 10월 3일
0 개 추천
카테고리
도움말 센터 및 File Exchange에서 Random Number Generation에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!