[erlang-questions] Implemented Poisson and Exponential Distribution
Sun May 31 16:48:29 CEST 2015
I've spent the last couple of days with re-implementing the algorithms
for taking random samples from the poisson and exponential distribution
from R's native C implementation.
It was quite the challenge to translate the imperative C code to Erlangs
functional style, especially the one goto statement.
The Erlang code might still be subject for optimization and I would
appreciate any feedback on how to improve it.
The C code is included in the Repo for reference and it is implementing
after two papers which presented highly efficient algorithms for both
The code can be found here:
More information about the erlang-questions