tanh_coverage_smoother: Smoother function for the curve of the interventions. Used to...

View source: R/intervention.R

tanh_coverage_smootherR Documentation

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

Description

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.


Como-DTC-Collaboration/como-models documentation built on May 22, 2022, 9:33 a.m.