Microsimulation API
|
EventReport class for collecting statistics on person-time, prevalence and numbers of events. More...
#include <microsimulation.h>
Public Types | |
typedef std::set< Time, std::greater< Time > > | Partition |
typedef Partition::iterator | Iterator |
typedef std::pair< State, Time > | Pair |
typedef std::unordered_map< pair< State, Time >, int > | PrevMap |
typedef std::unordered_map< pair< State, Time >, Utility > | UtilityMap |
typedef std::unordered_map< pair< State, Time >, Time > | PtMap |
typedef std::unordered_map< std::tuple< State, Event, Time >, int > | EventsMap |
typedef vector< Utility > | IndividualUtilities |
Public Member Functions | |
EventReport (Utility discountRate=0.0, bool outputUtilities=true, int size=1, Time startReportAge=Time(0), bool indiv=false) | |
void | resize (int size) |
void | setPartition (const vector< Time > v) |
void | setPartition (const Time start=0.0, const Time finish=100.0, const Time delta=1.0, const Time maxTime=Time(1.0e100)) |
void | setIndivN (const int n) |
void | setStartReportAge (const Time a) |
void | clear () |
void | individualReset () |
Utility | discountedUtilities (Time a, Time b, Utility utility=1.0) |
void | addBrief (const Time lhs, const Time rhs, const Utility utility=1) |
void | add (const State state, const Event event, const Time lhs, const Time rhs, const Utility utility=1, int index=0) |
template<class T > | |
void | append_map (T &base_map, T &new_map) |
void | append (EventReport< State, Event, Time, Utility > &er) |
SEXP | wrap () |
SEXP | wrap_indiv () |
SEXP | wrap_means () |
Public Attributes | |
Utility | discountRate |
Utility | current |
bool | outputUtilities |
Partition | _partition |
PrevMap | _prev |
UtilityMap | _ut |
PtMap | _pt |
EventsMap | _events |
IndividualUtilities | _vector |
Means | mean_utilities |
Time | startReportAge |
int | id |
bool | indiv |
EventReport class for collecting statistics on person-time, prevalence and numbers of events.
Definition at line 666 of file microsimulation.h.
typedef std::unordered_map<std::tuple<State,Event,Time>, int > ssim::EventReport< State, Event, Time, Utility >::EventsMap |
Definition at line 674 of file microsimulation.h.
typedef vector<Utility> ssim::EventReport< State, Event, Time, Utility >::IndividualUtilities |
Definition at line 675 of file microsimulation.h.
typedef Partition::iterator ssim::EventReport< State, Event, Time, Utility >::Iterator |
Definition at line 669 of file microsimulation.h.
typedef std::pair<State,Time> ssim::EventReport< State, Event, Time, Utility >::Pair |
Definition at line 670 of file microsimulation.h.
typedef std::set<Time, std::greater<Time> > ssim::EventReport< State, Event, Time, Utility >::Partition |
Definition at line 668 of file microsimulation.h.
typedef std::unordered_map<pair<State,Time>, int > ssim::EventReport< State, Event, Time, Utility >::PrevMap |
Definition at line 671 of file microsimulation.h.
typedef std::unordered_map<pair<State,Time>, Time > ssim::EventReport< State, Event, Time, Utility >::PtMap |
Definition at line 673 of file microsimulation.h.
typedef std::unordered_map<pair<State,Time>, Utility > ssim::EventReport< State, Event, Time, Utility >::UtilityMap |
Definition at line 672 of file microsimulation.h.
|
inline |
Definition at line 676 of file microsimulation.h.
|
inline |
Definition at line 738 of file microsimulation.h.
|
inline |
Definition at line 734 of file microsimulation.h.
|
inline |
Definition at line 772 of file microsimulation.h.
|
inline |
Definition at line 767 of file microsimulation.h.
|
inline |
Definition at line 701 of file microsimulation.h.
|
inline |
Definition at line 722 of file microsimulation.h.
|
inline |
Definition at line 710 of file microsimulation.h.
|
inline |
Definition at line 681 of file microsimulation.h.
|
inline |
Definition at line 694 of file microsimulation.h.
|
inline |
Definition at line 687 of file microsimulation.h.
|
inline |
Definition at line 684 of file microsimulation.h.
|
inline |
Definition at line 698 of file microsimulation.h.
|
inline |
Definition at line 779 of file microsimulation.h.
|
inline |
Definition at line 792 of file microsimulation.h.
|
inline |
Definition at line 795 of file microsimulation.h.
EventsMap ssim::EventReport< State, Event, Time, Utility >::_events |
Definition at line 804 of file microsimulation.h.
Partition ssim::EventReport< State, Event, Time, Utility >::_partition |
Definition at line 800 of file microsimulation.h.
PrevMap ssim::EventReport< State, Event, Time, Utility >::_prev |
Definition at line 801 of file microsimulation.h.
PtMap ssim::EventReport< State, Event, Time, Utility >::_pt |
Definition at line 803 of file microsimulation.h.
UtilityMap ssim::EventReport< State, Event, Time, Utility >::_ut |
Definition at line 802 of file microsimulation.h.
IndividualUtilities ssim::EventReport< State, Event, Time, Utility >::_vector |
Definition at line 805 of file microsimulation.h.
Utility ssim::EventReport< State, Event, Time, Utility >::current |
Definition at line 798 of file microsimulation.h.
Utility ssim::EventReport< State, Event, Time, Utility >::discountRate |
Definition at line 798 of file microsimulation.h.
int ssim::EventReport< State, Event, Time, Utility >::id |
Definition at line 808 of file microsimulation.h.
bool ssim::EventReport< State, Event, Time, Utility >::indiv |
Definition at line 809 of file microsimulation.h.
Means ssim::EventReport< State, Event, Time, Utility >::mean_utilities |
Definition at line 806 of file microsimulation.h.
bool ssim::EventReport< State, Event, Time, Utility >::outputUtilities |
Definition at line 799 of file microsimulation.h.
Time ssim::EventReport< State, Event, Time, Utility >::startReportAge |
Definition at line 807 of file microsimulation.h.