Draw random number from Normal distribution past a threshold value
古いコメントを表示
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.
採用された回答
その他の回答 (1 件)
Walter Roberson
2016 年 6 月 22 日
0 投票
The method of operation is not documented; it might use a rejection method internally.
カテゴリ
ヘルプ センター および File Exchange で Random Number Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!