Generate random variables from probability density function (pdf) using inverse transform technique .
function x=PDF2Rand(xPDF,yPDF,N)
Input
xPDF:x values of probability density function
yPDF:y values of probability density function
N:Number of samples of the random varible
output
x:Generated random variable
인용 양식
Ayad Al-Rumaithi (2024). Generate Random Variables from PDF (https://www.mathworks.com/matlabcentral/fileexchange/71789-generate-random-variables-from-pdf), MATLAB Central File Exchange. 검색됨 .
MATLAB 릴리스 호환 정보
개발 환경:
R2017b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux카테고리
Help Center 및 MATLAB Answers에서 Random Number Generation에 대해 자세히 알아보기
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!