ricker_allee_reproduction_model(
abundance = 50,
reproduction_rate = 2,
carrying_capacity = 100,
allee_threshold = -100
)
ricker_allee_reproduction_model(
abundance = 50,
reproduction_rate = 2,
carrying_capacity = 100,
allee_threshold = -100,
overcomp_factor = 4
)
ricker_allee_reproduction_model(
abundance = matrix(10, 5, 5),
reproduction_rate = 0.25,
carrying_capacity = 100,
allee_threshold = 20
)
ricker_allee_reproduction_model(
abundance = matrix(10, 5, 5),
reproduction_rate = matrix(seq(-0.5, 0.5, length.out = 25), 5, 5),
carrying_capacity = matrix(100, 5, 5),
allee_threshold = matrix(20, 5, 5)
)
ricker_allee_reproduction_model(
abundance = matrix(10, 5, 5),
reproduction_rate = matrix(1, 5, 5),
carrying_capacity = matrix(100, 5, 5),
allee_threshold = matrix(seq(0, 100, length.out = 25), 5, 5)
)
ricker_allee_reproduction_model(
abundance = matrix(10, 5, 5),
reproduction_rate = matrix(seq(0, -2, length.out = 25), 5, 5),
carrying_capacity = matrix(100, 5, 5),
allee_threshold = matrix(20, 5, 5)
)
# Note that the input abundance is modified in-place
abu <- 10
res <- ricker_allee_reproduction_model(
abundance = abu,
reproduction_rate = 0.25,
carrying_capacity = 100,
allee_threshold = -100
)
stopifnot(identical(abu, res))
Run the code above in your browser using DataLab