generate random numbers subject to

조회 수: 1 (최근 30일)
Alexandra
Alexandra 2016년 4월 18일
답변: Image Analyst 2016년 4월 18일
Hi, I am trying to generate a set of random numbers X between 0 and 1 subject that an equation depending on X can be negative. Thanks a lot,

답변 (1개)

Image Analyst
Image Analyst 2016년 4월 18일
You need to do inverse transform sampling. https://en.wikipedia.org/wiki/Inverse_transform_sampling This involves getting the CDF of the equation. I attach a Rayleigh example.

카테고리

Help CenterFile Exchange에서 Random Number Generation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by