Skip to content

Commit

Permalink
Final touches
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Oct 29, 2024
1 parent e7449ca commit 4ceca3e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions epiworld.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6485,7 +6485,7 @@ class Model {
* @param s Seed
*/
///@{
void set_rand_engine(std::mt19937 & eng);
void set_rand_engine(std::shared_ptr< std::mt19937 > & eng);
std::shared_ptr< std::mt19937 > & get_rand_endgine();
void seed(size_t s);
void set_rand_norm(epiworld_double mean, epiworld_double sd);
Expand Down Expand Up @@ -17031,7 +17031,7 @@ inline ModelSURV<TSeq>::ModelSURV(

// How many will we find
std::binomial_distribution<> bdist(m->size(), m->par("Surveilance prob."));
int nsampled = bdist(m->get_rand_endgine());
int nsampled = bdist(*m->get_rand_endgine());

int to_go = nsampled + 1;

Expand Down
2 changes: 1 addition & 1 deletion include/epiworld/model-bones.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class Model {
* @param s Seed
*/
///@{
void set_rand_engine(std::mt19937 & eng);
void set_rand_engine(std::shared_ptr< std::mt19937 > & eng);
std::shared_ptr< std::mt19937 > & get_rand_endgine();
void seed(size_t s);
void set_rand_norm(epiworld_double mean, epiworld_double sd);
Expand Down
2 changes: 1 addition & 1 deletion include/epiworld/models/surveillance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ inline ModelSURV<TSeq>::ModelSURV(

// How many will we find
std::binomial_distribution<> bdist(m->size(), m->par("Surveilance prob."));
int nsampled = bdist(m->get_rand_endgine());
int nsampled = bdist(*m->get_rand_endgine());

int to_go = nsampled + 1;

Expand Down

0 comments on commit 4ceca3e

Please sign in to comment.