Effacer les filtres
Effacer les filtres

generate random numbers subject to

1 vue (au cours des 30 derniers jours)
Alexandra
Alexandra le 18 Avr 2016
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,

Réponses (1)

Image Analyst
Image Analyst le 18 Avr 2016
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.

Catégories

En savoir plus sur Random Number Generation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by