|
phylopomp
Phylodynamics for POMPs
|
Population process class. More...
#include <popul_proc.h>
Public Member Functions | |
| size_t | bytesize (void) const |
| size of serialized binary form | |
| popul_proc_t (double t0=0) | |
| popul_proc_t (raw_t *o) | |
| constructor from serialized binary form | |
| popul_proc_t (const popul_proc_t &X) | |
| copy constructor | |
| popul_proc_t & | operator= (const popul_proc_t &X) |
| copy assignment operator | |
| popul_proc_t (popul_proc_t &&)=delete | |
| move constructor | |
| popul_proc_t & | operator= (popul_proc_t &&)=delete |
| move assignment operator | |
| ~popul_proc_t (void) | |
| destructor | |
| slate_t | time (void) const |
| get current time. | |
| virtual void | valid (void) const |
| void | update_params (double *, int) |
| set parameters | |
| void | update_IVPs (double *, int) |
| set initial-value parameters | |
| double | event_rates (double *rate, int n) const |
| compute event rates | |
| virtual void | rinit (void)=0 |
| initialize the state | |
| virtual void | jump (int e)=0 |
| makes a jump | |
| std::string | yaml (std::string tab) const |
| machine/human readable info | |
| void | update_clocks (void) |
| updates clock and next event | |
| int | play (double tfin) |
Protected Types | |
| typedef STATE | state_t |
| typedef PARAMETERS | parameters_t |
Protected Attributes | |
| slate_t | next |
| size_t | event |
| slate_t | current |
| state_t | state |
| parameters_t | params |
Static Protected Attributes | |
| static const size_t | nevent = NEVENT |
| static const size_t | ndeme = NDEME |
Private Member Functions | |
| void | clean (void) |
Friends | |
| raw_t * | operator>> (const popul_proc_t &X, raw_t *o) |
| binary serialization | |
| raw_t * | operator>> (raw_t *o, popul_proc_t &X) |
| binary deserialization | |
Population process class.
The class for the simulation of the Markov process.
Definition at line 20 of file popul_proc.h.
|
protected |
Definition at line 25 of file popul_proc.h.
|
protected |
Definition at line 24 of file popul_proc.h.
|
inline |
basic constructor for popul_proc class t0 = initial time
Definition at line 74 of file popul_proc.h.
|
inline |
constructor from serialized binary form
Definition at line 80 of file popul_proc.h.
|
inline |
copy constructor
Definition at line 84 of file popul_proc.h.
|
delete |
move constructor
|
inline |
|
inline |
size of serialized binary form
Definition at line 45 of file popul_proc.h.

|
inlineprivate |
Definition at line 39 of file popul_proc.h.

| double popul_proc_t< STATE, PARAMETERS, NEVENT, NDEME >::event_rates | ( | double * | rate, |
| int | n ) const |
compute event rates

|
pure virtual |
makes a jump
Implemented in master_t< lbdp_proc_t, 1 >, master_t< lbdp_proc_t, 1 >, master_t< moran_proc_t, 1 >, master_t< moran_proc_t, 1 >, master_t< s2i2r2_proc_t, 3 >, master_t< s2i2r2_proc_t, 3 >, master_t< seir_proc_t, 2 >, master_t< seir_proc_t, 2 >, master_t< si2r_proc_t, 2 >, master_t< si2r_proc_t, 2 >, master_t< siir_proc_t, 2 >, master_t< siir_proc_t, 2 >, master_t< sir_proc_t, 1 >, master_t< sir_proc_t, 1 >, master_t< twospecies_proc_t, 3 >, and master_t< twospecies_proc_t, 3 >.

|
inline |
|
delete |
move assignment operator
|
inline |
run process to a specified time. return number of events that have occurred.
Definition at line 160 of file popul_proc.h.
|
pure virtual |
initialize the state
Implemented in master_t< lbdp_proc_t, 1 >, master_t< lbdp_proc_t, 1 >, master_t< moran_proc_t, 1 >, master_t< moran_proc_t, 1 >, master_t< s2i2r2_proc_t, 3 >, master_t< s2i2r2_proc_t, 3 >, master_t< seir_proc_t, 2 >, master_t< seir_proc_t, 2 >, master_t< si2r_proc_t, 2 >, master_t< si2r_proc_t, 2 >, master_t< siir_proc_t, 2 >, master_t< siir_proc_t, 2 >, master_t< sir_proc_t, 1 >, master_t< sir_proc_t, 1 >, master_t< twospecies_proc_t, 3 >, and master_t< twospecies_proc_t, 3 >.
|
inline |
|
inline |
updates clock and next event
Definition at line 138 of file popul_proc.h.

| void popul_proc_t< STATE, PARAMETERS, NEVENT, NDEME >::update_IVPs | ( | double * | , |
| int | ) |
set initial-value parameters
| void popul_proc_t< STATE, PARAMETERS, NEVENT, NDEME >::update_params | ( | double * | , |
| int | ) |
set parameters
|
inlinevirtual |
Definition at line 118 of file popul_proc.h.
| std::string popul_proc_t< STATE, PARAMETERS, NEVENT, NDEME >::yaml | ( | std::string | tab | ) | const |
machine/human readable info
|
friend |
|
friend |
|
protected |
Definition at line 33 of file popul_proc.h.
|
protected |
Definition at line 32 of file popul_proc.h.
|
staticprotected |
Definition at line 27 of file popul_proc.h.
|
staticprotected |
Definition at line 26 of file popul_proc.h.
|
protected |
Definition at line 31 of file popul_proc.h.
|
protected |
Definition at line 35 of file popul_proc.h.
|
protected |
Definition at line 34 of file popul_proc.h.