antideriv_verhulst: Antiderivative of the Verhulst logistic function

View source: R/Math-Functions.R

antideriv_verhulstR Documentation

Antiderivative of the Verhulst logistic function

Description

Give the antiderivative of the logistic function from the Verhulst model.

Usage

antideriv_verhulst(x, initial_density, max_density, growth_rate)

Arguments

x

timestep up to which antiderivative must be computed

initial_density

initial density

max_density

maximal density

growth_rate

growth rate

Details

The Verhulst model (used to simulate host growth) is defined by f(x) = max\_{density} / (1 + (max\_{density}/initial\_{density})*exp(-growth\_{rate}*x)) . See https://en.wikipedia.org/wiki/Logistic_function for details.

Value

An object of the same type as x containing the antiderivative of the input values.

Examples

antideriv_verhulst(119, 0.1, 2, 0.1) / 120

landsepi documentation built on July 26, 2023, 5:36 p.m.