Binomial Random Number Generator
Versione 1.0.0.0 (1,6 KB) da
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.
Cita come
David (2024). Binomial Random Number Generator (https://www.mathworks.com/matlabcentral/fileexchange/42464-binomial-random-number-generator), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2013a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Scopri di più su Random Number Generation in Help Center e MATLAB Answers
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 |