systemAge {SoilR} | R Documentation |
System and pool age for constant compartment models
Description
Computes the density distribution and mean for the system and pool ages of a constant compartmental model in matrix representation
Usage
systemAge(A, u, a = seq(0, 100), q = c(0.05, 0.5, 0.95))
Arguments
A |
A constant compartmental square matrix with cycling rates in the diagonal and transfer rates in the off-diagonal. |
u |
A one-column matrix defining the amount of inputs per compartment. |
a |
A sequence of ages to calculate density functions |
q |
A vector of probabilities to calculate quantiles of the system age distribution |
Value
A list with 5 objects: mean system age, system age distribution, quantiles of system age distribution, mean pool-age, and pool-age distribution.
See Also
[Package SoilR version 1.2.107 Index]