This function applies survival of the current abundance, advances age classes, re-distributes the stock using the movement matrix.
calc_nextN(
N,
surv,
na = dim(N)[1],
nr = dim(N)[2],
ns = dim(N)[3],
advance_age = TRUE,
mov = array(1/nr, c(na, nr, nr, ns)),
plusgroup = TRUE
)Abundance at the next time step. Array [a, r, s]
Abundance at current time step. Array [a, r, s]
Survival during the current time step. Array [a, r, s]
Integer, number of age classes
Integer, number of regions
Integer, number of stocks
Logical, whether the animals advance to their next age class
Movement array in the next time step. Array [a, r, r, s]. Rows denote region of origin and columns denote region of destination.
Logical, whether the last age class is an accumulator plus group.