baranyi_diff: The differential form of the predictive growth model...

Description Usage Arguments Details Value Examples

View source: R/baranyi_diff.R

Description

The differential form of the predictive growth model developed by Baranyi & Roberts in 1994, to predict microbial growth in food environments.

Usage

1
baranyi_diff(t, state, parameters)

Arguments

t

time vector

state

initial values of y and Q for the first time value.

parameters

parameter list

Details

\begin{equation}d Q=\operatorname{mu_{max}}^{*} Q\end{equation}

\begin{equation}d y=(Q /(1+Q))^{*} \operatorname{mu_{max}}^{*}(1-(y / y_{max} ))^{*} y\end{equation}

Value

dQ, dy

Examples

1
2
3
4
5
6
7
8
9
library(deSolve)
K=9.21
Q=1/((1/exp(-K))-1)
Q
state <- c(Q=Q,y=15)
time <- seq(from=0, to=70, by = 1)
parameters <- c(mumax = 1, ymax=100000000)
out_baranyi <- ode(y = state, times = time, func = baranyi_diff, parms = parameters)
plot(time,log10(out_baranyi[,"y"]),lty=1,col='red')

Ghayabh/bacterial-growth documentation built on Dec. 31, 2020, 12:04 p.m.