Binomial Random Number Generator
Versión 1.0.0.0 (1,6 KB) por
David
Generates Binomial random numbers B(N,p). Works efficiently for large trial sizes, N.
The builtin binornd takes N operations to generate a single deviate, which is impossibly slow when N is large. The current code, modelled on the algorithm in Numerical Recipes, works efficiently for all N. Takes as input two vectors of length L, one with the N's and the second with the p's.
Citar como
David (2024). Binomial Random Number Generator (https://www.mathworks.com/matlabcentral/fileexchange/42464-binomial-random-number-generator), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2013a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Random Number Generation en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |