generate random numbers subject to

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,

Antworten (1)

Image Analyst
Image Analyst am 18 Apr. 2016

0 Stimmen

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.

Kategorien

Mehr zu Random Number Generation finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 18 Apr. 2016

Beantwortet:

am 18 Apr. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by