tanh_coverage_smoother | R Documentation |
Smoother function for the curve of the interventions. Used to avoid breaks in the ode solver of compartmental models with non-smooth interventions.
tanh_coverage_smoother(t, start, stop, coverage, tanh_slope)
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. |
value of intervention effect.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.