logistic: simulate evolution under the logistic branching model

Description Usage Arguments Details Value Examples

View source: R/logistic.R

Description

simulate evolution under the logistic branching model

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
logistic(
  Xo = 1,
  Ko = 1,
  SIGMA2_K = 1,
  SIGMA2_C = 1.01,
  R = 10,
  MU = 1,
  SIGMA2_MU = 5e-04,
  MAX_TIME = 3000,
  ENSEMBLES = 100,
  Dt = 100,
  dt = 0.1
)

Arguments

Xo

starting trait

Ko

carrying capacity

SIGMA2_K

carrying capacity kernel width

SIGMA2_C

competition kernel width (wider means no branching)

R

growth rate

MU

mutation rate

SIGMA2_MU

mutation step size

MAX_TIME

simulation time

ENSEMBLES

number of replicates

Dt

sampling time

dt

step size

Details

an R function to call the c code for simulation

Value

a data frame with evolved trajectories

Examples

1
out = logistic(Xo = 2)

cboettig/fluctuationDomains documentation built on Sept. 19, 2020, 9:42 p.m.