The trivial module outputs the net infectiousness, \(\kappa\), by calling a trace function, $$F_\kappa(t) = \kappa \times S(t, V_s) \times T(t, V_t) \times K(t, V_k)$$ where
\(\kappa\) or
kappais the mean net infectiousness\(S(t,V_s)\) or
F_seasonis a seasonal pattern function\(T(t,V_t)\) or
F_trendis a trend pattern function\(K(t,V_k)\) or
F_shockis a perturbation function
The variables \(V_s\), \(V_t\), and \(V_t\) are
called by get_variables, which dispatches on the class of
season_par or trend_par or shock_par.
Note: \(0 \leq F_\kappa(t) \leq 1\)
Parameters
kappathe net infectiousness
F_seasona seasonal pattern function, \({S(t,V_s)}\)
F_trenda trend function, \(T(t,V_t)\)
F_shocka shock function, \(K(t,V_k)\)
season_pardispatches get_variables to get \(V_s\)
trend_pardispatches get_variables to get \(V_t\)
shock_pardispatches get_variables to get \(V_k\)
Setup also adds the objects season_par and trend_par and shock_par for
use by ramp.func
Get and Change
get_XH_pars— thetrivialmethod returns all the parameterschange_XH_pars— change parameters by name
Notes
The module has no state variables.
The size of an object saved by
saveRDSballoons if it saves a function, sosaveXDSfunction strips the functions andreadRDSremakes the function from the stored parameters.F_season,F_trend, andF_shockcan be set up manually by passing any user defined function. If so, the user should usesaveRDSandreadRDSrather thansaveXDSandreadXDSSetup expects that
membership= c(1:nPatches),but any membership vector works.