|
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 |
| virtual void | rinit (void)=0 |
| initialize the state | |
| virtual void | jump (int e)=0 |
| makes a jump | |
| 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 | |
| string_t | yaml (string_t 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 |
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 16 of file popul_proc.h.
|
protected |
Definition at line 21 of file popul_proc.h.
|
protected |
Definition at line 20 of file popul_proc.h.
|
inline |
basic constructor for popul_proc class t0 = initial time
Definition at line 69 of file popul_proc.h.
|
inline |
constructor from serialized binary form
Definition at line 75 of file popul_proc.h.
|
inline |
copy constructor
Definition at line 79 of file popul_proc.h.
|
delete |
move constructor
|
inline |
|
inline |
size of serialized binary form
Definition at line 40 of file popul_proc.h.

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

| double popul_proc_t< STATE, PARAMETERS, NEVENT >::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< strains_proc_t, 3 >, master_t< strains_proc_t, 3 >, master_t< twospecies_proc_t, 3 >, master_t< twospecies_proc_t, 3 >, master_t< twoundead_proc_t, 5 >, and master_t< twoundead_proc_t, 5 >.

|
inline |
|
delete |
move assignment operator
| int popul_proc_t< STATE, PARAMETERS, NEVENT >::play | ( | double | tfin | ) |
run process to a specified time. return number of events that have occurred.
Definition at line 172 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< strains_proc_t, 3 >, master_t< strains_proc_t, 3 >, master_t< twospecies_proc_t, 3 >, master_t< twospecies_proc_t, 3 >, master_t< twoundead_proc_t, 5 >, and master_t< twoundead_proc_t, 5 >.
|
inline |
| void popul_proc_t< STATE, PARAMETERS, NEVENT >::update_clocks | ( | void | ) |
updates clock and next event
Definition at line 141 of file popul_proc.h.


| void popul_proc_t< STATE, PARAMETERS, NEVENT >::update_IVPs | ( | double * | , |
| int | ) |
set initial-value parameters
| void popul_proc_t< STATE, PARAMETERS, NEVENT >::update_params | ( | double * | , |
| int | ) |
set parameters
|
inlinevirtual |
Definition at line 111 of file popul_proc.h.
| string_t popul_proc_t< STATE, PARAMETERS, NEVENT >::yaml | ( | string_t | tab | ) | const |
machine/human readable info
|
friend |
|
friend |
|
protected |
Definition at line 28 of file popul_proc.h.
|
protected |
Definition at line 27 of file popul_proc.h.
|
staticprotected |
Definition at line 22 of file popul_proc.h.
|
protected |
Definition at line 26 of file popul_proc.h.
|
protected |
Definition at line 30 of file popul_proc.h.
|
protected |
Definition at line 29 of file popul_proc.h.