Draw random number from Normal distribution past a threshold value
Ältere Kommentare anzeigen
Hi,
I want to draw values that are larger than 1.96 from a normal distribution. Anyone know how I can do this in matlab. Is there a built-in function to do this?
Note, of course I could use rejection sampling, but I want to draw a vector of 10000 values larger than 1.96 and I want to do this 5000 times. Using rejection sampling could be extremely time-consuming and I want to avoid that.
Thank you very much for your help.
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 22 Jun. 2016
0 Stimmen
The method of operation is not documented; it might use a rejection method internally.
Kategorien
Mehr zu Univariate Discrete Distributions finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!