27 std::string t = tab +
" ";
28 std::string p = tab +
"parameter:\n"
33 std::string s = tab +
"state:\n"
44 if (m !=
n)
err(
"wrong number of parameters!");
51 if (m !=
n)
err(
"wrong number of initial-value parameters!");
61 if (m !=
n)
err(
"wrong number of events!");
75 state.n += 1;
birth();
78 state.n -= 1;
death();
Encodes the master process.
void birth(name_t i=0, name_t j=0, int n=1)
n births into deme j with parent in deme i
void sample(name_t i=0, int n=1)
sample in deme i
void death(name_t i=0)
death in deme i
void jump(int e)
makes a jump
void rinit(void)
initialize the state
void graft(name_t i=0, int m=1)
new root in deme i
Population process class.
void update_IVPs(double *, int)
set initial-value parameters
void update_params(double *, int)
set parameters
std::string yaml(std::string tab) const
machine/human readable info
double event_rates(double *rate, int n) const
compute event rates
#define GENERICS(X, TYPE)