seem (version 1.0)

Structured Population Model Functions: Functions to define structured population models for simulation

Description

Functions used as part of argument model to call simulation functions.

Usage

two.stage.cont(t,p,x)
two.stage.cont.delay(t,p,x) 
two.stage.x0(p,X0)

Arguments

t
time
p
parameters, an array
x
state variable
X0
initial condition for class with delay

Value

  • Rate of change or derivative of model. Except two.stage.x0 that returns distributed initial condition by allocation.

Details

State variable is population density.

References

Acevedo M.F. 2012. Simulation of Ecological and Environmental Models. CRC Press.

Lewis, E.R., 1977. Network Models in Population Biology. New York: Springer Verlag.

McDonald, N. 1978. Time Lags in Biological Models. New York: Springer Verlag.

See Also

Simulation functions sim.comp, sim.rnum, sim.mruns, sim, simd Methods euler, RK4

Examples

Run this code
two.stage <-list(f=two.stage.cont)
param <- list(plab="b", pval = c(0.15,0.25,0.3,0.31))
t.X <- simt(two.stage,"chp10/two-stage-inp.csv", param,pdfout=TRUE)

two.stage.delay <-list(f=two.stage.cont.delay,x0=two.stage.x0)
param <- list(plab="nd", pval = c(2,5,6,7))
t.X <- simt(two.stage.delay,"chp10/two-stage-delay-inp.csv",
param,pdfout=TRUE)

Run the code above in your browser using DataLab