Skip to content

Commit

Permalink
Make single header
Browse files Browse the repository at this point in the history
  • Loading branch information
apulsipher committed Nov 4, 2024
1 parent bb42fee commit af0f48d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions epiworld.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/* Versioning */
#define EPIWORLD_VERSION_MAJOR 0
#define EPIWORLD_VERSION_MINOR 4
#define EPIWORLD_VERSION_PATCH 1
#define EPIWORLD_VERSION_PATCH 2

static const int epiworld_version_major = EPIWORLD_VERSION_MAJOR;
static const int epiworld_version_minor = EPIWORLD_VERSION_MINOR;
Expand Down Expand Up @@ -1249,7 +1249,8 @@ class LFMCMC {
void run(
std::vector< epiworld_double > param_init,
size_t n_samples_,
epiworld_double epsilon_
epiworld_double epsilon_,
int seed = -1
);

LFMCMC() {};
Expand Down Expand Up @@ -1526,7 +1527,8 @@ class LFMCMC {
void run(
std::vector< epiworld_double > param_init,
size_t n_samples_,
epiworld_double epsilon_
epiworld_double epsilon_,
int seed = -1
);

LFMCMC() {};
Expand Down Expand Up @@ -1796,7 +1798,8 @@ template<typename TData>
inline void LFMCMC<TData>::run(
std::vector< epiworld_double > params_init_,
size_t n_samples_,
epiworld_double epsilon_
epiworld_double epsilon_,
int seed
)
{

Expand All @@ -1809,6 +1812,9 @@ inline void LFMCMC<TData>::run(
params_init = params_init_;
n_parameters = params_init_.size();

if (seed >= 0)
this->seed(seed);

params_now.resize(n_parameters);
params_prev.resize(n_parameters);

Expand Down

0 comments on commit af0f48d

Please sign in to comment.