Logistic shape generator

logistic(
  time = seq(0, 1, 0.01),
  initial = 1,
  percent_reduction = 0.5,
  midpoint = 0.5,
  shape = 1
)

Arguments

time

time horizon

initial

value at time zero

percent_reduction

in [0, 1], percentage reduction compare to the initial value after midpoint of the time horizon, so the end value equals initial x percent_reduction

midpoint

the time the function changes

shape

control how sharp the transition from initial value to the end value