generate random numbers subject to

1 回表示 (過去 30 日間)
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. This involves getting the CDF of the equation. I attach a Rayleigh example.


Help Center および File ExchangeRandom Number Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by