Draw random number from Normal distribution past a threshold value
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 22 de Jun. de 2016
0 votos
The method of operation is not documented; it might use a rejection method internally.
Categorías
Más información sobre Univariate Discrete Distributions en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!