# NOT RUN {
# This calculates the information for the next planned stochastic disturbance event.
# Consider a situation where there is a disturbance reducing populations 100 fold,
# and it occurs either in a proscriptive number of steps, or we calculate it based
# on recovery time as per the growth rate and growth model parameters.
compute_distGrowth("bottleneck","exponential","bottleneck",
2,1e4,1e2,5,1)
compute_distGrowth("bottleneck","exponential","bottleneck",
2,1e4,1e2,NULL,1)
# If growth is constant or Poisson, then disturbances are effectively supressed
compute_distGrowth("bottleneck","poisson","bottleneck",
2,1e4,1e2,NULL,1)
# }
Run the code above in your browser using DataLab