logistic: Logistic shape generator

View source: R/Utils.R

logisticR Documentation

Logistic shape generator

Description

Logistic shape generator

Usage

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


kklot/ktools documentation built on Aug. 13, 2024, 7:08 p.m.