Drift of the Stratonovich form of an Ito SDE
Source:R/sensitivity-misc.R
StochasticTransformedFunction.RdStochasticTransformedFunction(sol, f, g, corfunc_analytical) wraps the
drift f(u, p, t) of an Ito SDE solved in sol for the stochastic
adjoints: it returns f(u, p, t) - c(u, p, t) with the correction c = J' vec(g(u, p, t)), J the Jacobian of vec(g) with respect to u (as
SciMLSensitivity, which computes it by reverse mode differentiation; here
central differences), or c = corfunc_analytical(u, p, t) when given.