Given an initial number of individual and an evaluated transition matrix, returns the number of individual per state per cycle.
# S3 method for eval_part_surv
compute_counts(x, init, inflow, ...)compute_counts(x, ...)
# S3 method for eval_matrix
compute_counts(x, init, inflow, ...)
A cycle_counts
object.
An eval_matrix
or
eval_part_surv
object.
numeric vector, same length as number of model states. Number of individuals in each model state at the beginning.
numeric vector, similar to init
.
Number of new individuals in each state per cycle.
Use the method
argument to specify if transitions
are supposed to happen at the beginning or the end of
each cycle. Alternatively linear interpolation between
cycles can be performed.