single.step: Perform a single (generation) step for the population

Description Usage Arguments Value

View source: R/model.R

Description

Perform a single step for a population based on their defined breeding, survival, and crowding parameters and the habitat surface. This function is only called when the user requires fine-grained control over changes to the population each generation.

Usage

1
2
single.step(curr.pop, move.table, survive.table, breed.table, habitat.surface,
  crowd.table = NA, crowding.sigma = 0, max.dist = 5)

Arguments

curr.pop

The current population as a .ppp

move.table

Movement table as defined by movement.table.

survive.table

Survival table as defined by survival.table.

breed.table

Breeding table as defined by breeding.table

habitat.surface

The habitat (probability) surface. See circle.habitat for an example, although this surface could be produced in many ways. The only requirement is that it must cover the entire window associated with the population.

crowd.table

The crowding table as defined by crowding.table. May be NA for no crowding.

crowding.sigma

Bandwidth used for density calculation for crowding. Value of 0.0 indicates no crowding.

max.dist

Maximum distance between breeding parents

Value

The next population as a .ppp


pwhigham/spatibm documentation built on Aug. 30, 2019, 1:16 p.m.