Skip to contents

Smoother function for the curve of the interventions. Used to avoid breaks in the ode solver of compartmental models with non-smooth interventions.

Usage

tanh_coverage_smoother(t, start, stop, coverage, tanh_slope)

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.

Value

value of intervention effect.