-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generators for Poisson and Binomial distributions with different tradeoffs #27
Comments
There's post about algorithm for generation of Poisson random variates. Algorithm is noce and simple but requires dependency on http://www.johndcook.com/blog/2010/06/14/generating-poisson-random-values/ |
I am trying to figure out whether the issue I have is related. My system is using many GB (I last stopped it at 25 GB!) of memory to do something that perhaps ought to be simple:
I guess this is from the table generation. Is this expected given the current setup? |
Yes. It's problem with condensed tables. See #59 |
This is what R uses, might be of help for a possible implementation. |
Thank you! Although I don't think I'll have time anytime soon |
Currently library allows to generate Poisson and binomial random variate using condensed tables algorithm. It is very fast but require building lookup table which is costly. It makes this algorithm unsuitable for cases when only few samples for given parameters are required. For examples when parameters are random variables themselves
The text was updated successfully, but these errors were encountered: