logisticMap {rSHAPE}R Documentation

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.

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

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

# 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.

[Package rSHAPE version 0.3.2 Index]