logisticMap: This is the discrete time logistic growth function known as...

Description Usage Arguments Value Examples

View source: R/sourceSHAPE.R

Description

This is the discrete time logistic growth function known as the logistic map. It calculates the amount of growth expected in a step of time given by: N_t+1 = N_t + r * (N_t (K - N_t)/K); where N_t is community size at a time point, r is the per step growth rate, and K is the environmental carrying capacity.

Usage

1
logisticMap(func_rate, func_startPop, func_maxPop)

Arguments

func_rate

Per time step intrinsic growth rate of individuals

func_startPop

The initial summed size of the evolving community

func_maxPop

The carrying capacity of the simulated environment

Value

A single value as to the expected summed size of evolving populations in the considered environment.

Examples

1
2
3
4
5
6
7
8
9
# This is the discrete time step form of the logistic equation, known as the logistic map.
# It takes a growth rate starting and max possible community size.
stepwise_Size <- 100
for(thisStep in 1:7){
  stepwise_Size <- c(stepwise_Size,
                     logisticMap(2,stepwise_Size[length(stepwise_Size)],1e4))
}
stepwise_Size
# When a population overshoots, it will loose members.

rSHAPE documentation built on July 19, 2019, 5:05 p.m.

Related to logisticMap in rSHAPE...