% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dde.R
\name{.rxDelaySensJumpMap}
\alias{.rxDelaySensJumpMap}
\alias{.rxDelaySensJumpEvents}
\alias{.rxDelaySensJump}
\alias{.rxDelaySensJumpMapCached}
\title{Dose-induced breaking-point jump for forward delay sensitivities}
\usage{
.rxDelaySensJumpMap(model, calcSens)

.rxDelaySensJumpEvents(jumpMap, st, events)

.rxDelaySensJump(model, calcSens, events)

.rxDelaySensJumpMapCached(model, calcSens, keyTxt = NULL)
}
\arguments{
\item{model}{base ODE model (anything \code{rxNorm()} accepts).}

\item{calcSens}{character vector of sensitivity parameters.}

\item{jumpMap}{the jump map from \code{.rxDelaySensJumpMap()} (\verb{$jumpMap}).}

\item{st}{ODE state names (\verb{$st} from \code{.rxDelaySensJumpMap()}), for numeric-cmt
resolution.}

\item{events}{an rxode2 event table (to mirror the state-j doses onto the
sensitivity compartments).}

\item{keyTxt}{normalized model text used as the cache key (pass \code{rxNorm(model)}
if already computed, else it is derived).}
}
\value{
\code{.rxDelaySensJumpMap()}: list with \code{alagf}, \code{jumpMap}, and \code{st}, or
\code{NULL} when the model has no parameter-dependent delay.  \code{.rxDelaySensJump()}:
list with \code{alagf} and \code{events}, or \code{NULL}.
}
\description{
A dose propagated through \code{delay(y_j, T(p))} makes the 1st-order sensitivity
jump at \code{t = t_dose + T} by \verb{[S_i] = -(d f_i/d delay(y_j,T)) * [y_j] * dT/dp},
reproduced here as a modeled bolus of \verb{[y_j]} on the sensitivity compartment
with modeled lag \code{T} and bioavailability \verb{-(d f_i/d delay)*dT/dp}.
\code{.rxDelaySensJumpMap()} does the model-only symengine analysis (cached via
\code{.rxDelaySensJumpMapCached()}); \code{.rxDelaySensJumpEvents()} rbinds the
mirroring doses per solve; \code{.rxDelaySensJump()} does both.
}
\author{
Matthew L. Fidler
}
\keyword{internal}
