| .rxDiscreteAdjointGrad | R Documentation |
Given the RK4 stages from .rxDiscreteForwardSens() and, per observation
step, the objective covector c_n = dG/dX_{step_n}, computes dG/dtheta by
reverse-mode differentiation through the RK4 steps – equal to
sum_n c_n^T S_{step_n} to machine precision, in one backward pass.
.rxDiscreteAdjointGrad(
build,
stages,
params,
h,
obsSteps,
cov,
doses = NULL,
lam0Cov = NULL
)
build |
object from |
stages |
RK4 stage list from |
params |
named numeric parameter vector. |
h |
fixed step size (same as the forward solve). |
obsSteps |
integer step indices at which observation covectors apply. |
cov |
list of covector vectors (length |
doses |
optional list of additive-bolus dose specs (same format as
|
lam0Cov |
optional initial-condition sensitivity |
named numeric vector dG/dtheta over build$calcSens.
Matthew L. Fidler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.