Trans: Transition class

Description Construction Fields Methods Note

Description

A class that perform Monte Carlo simulation on agents using a probabilistic model. Work flow: initialise() -> filter() -> mutate() -> simulate() -> postprocess(). Note that, to swap the run order of filter() and mutate() you need to change the mutate_first public field to TRUE.

Construction

1
Trans$new(x, model, target = NULL, targeted_agents = NULL)

Fields

Methods

Note

target can be static or dynamic depending on the data structure of it. A static target can be a named list or an integer value depending its usage in each event function.


dymium-org/dymiumCore documentation built on July 18, 2021, 5:10 p.m.