Simulates a Bernoulli process where all individuals
in a given source state from sample whether or not
to transition to destination state to with a
individual probability specified by the DoubleVariable
object rate_variable.
multi_probability_bernoulli_process(variable, from, to, rate_variable)a CategoricalVariable object.
a string representing the source state.
a string representing the destination state.
DoubleVariable giving individual probability of each individual in source state to leave.
a function which can be passed as a process to simulation_loop.