Learn R Programming

MicrobialGrowth (version 1.0.0)

.linear.formula: Linear equation.

Description

Linear equation.

Usage

.linear.formula(N0, Nmax, mu, lambda, base = NULL)

Value

a function taking as input x (the time) and outputting the value of the linear equation.

Arguments

N0

initial radius.

Nmax

final/maximum radius.

mu

growth rate.

lambda

latency time.

base

decimal base used for plot y-scaling.

Examples

Run this code
f <- .linear.formula(0.1, 2, 0.2, 5)
f(4)
## [1] 0
f(20)
## [1] 3

Run the code above in your browser using DataLab