Smoother function for the curve of the interventions. Used to avoid breaks in the ode solver of compartmental models with non-smooth interventions.
Source:R/intervention.R
tanh_coverage_smoother.Rd
Smoother function for the curve of the interventions. Used to avoid breaks in the ode solver of compartmental models with non-smooth interventions.
Arguments
- t
time at which the intervention effect is computed.
- start
time at which the intervention started.
- stop
time at which the intervention ended.
- coverage
height of intervention effect.
- tanh_slope
sharpness of the intervention wave used for function continuity purposes;larger values of this parameter cause the curve to more closely approach the step function.