Second attempt at C++ implementation of Ebola model #179
Labels
C++
Related to C++ code
Discussion
Issues kept open for discussions in the comments
Stochastic models
This issue requests a second attempt at an implementation of the ebola model. The previous Rcpp implementation was removed in #140, as it did not offer a substantial speed gain.
Possible reasons for no speed gain, and possible targets for improvement:
prob_discrete_erlang()
could be made more efficient;stats::multinomial()
for a single draw could be replaced with a function wrappingsample()
or with a custom weighted lottery function; see e.g. this implemenation in {pathomove};if-else
?)Note: make sure to use Rcpp-provided random number draws, or to include a wrapper to the R random number generator to take advantage of seed management through R.
The text was updated successfully, but these errors were encountered: