The trivial module outputs the net infectiousness, \(\kappa\), by calling a trace function, $$F_\kappa(t) = \kappa S(t) T(t) K(t)$$ where
\(\kappa\) or
kappais the mean net infectiousness\(S(t)\) or
F_seasonis a seasonal pattern\(T(t)\) or
F_trendis a trend pattern\(K(t)\) or
F_shockis a perturbation
Note: \(0 \leq F_\kappa(t) \leq 1\)
Parameters
kappathe net infectiousness
season_parparameters for make_function:
F_season=make_par(season_par)trend_parparameters for make_function:
F_trend=make_par(trend_par)shock_parparameters for make_function:
F_shock=make_par(shock_par)
The default setup option is season_par = trend_par = shock_par = makepar_F_one().
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.