Skip to contents

ConstantInterpolation(t, u), LinearInterpolation(t, u) and HermiteInterpolation(t, u, du) return functions of time that interpolate saved states (a matrix with one row per time or a list of states); they are the interpolations solutions use. BasicInterpolation(t, u, du) is Hermite interpolation when du is given and linear otherwise; SensitivityInterpolation(t, u) the linear interpolation of sensitivity solutions. interp_summary(sol) describes the interpolation of a solution.

Usage

ConstantInterpolation(t, u)

LinearInterpolation(t, u)

HermiteInterpolation(t, u, du)

BasicInterpolation(t, u, du = NULL)

SensitivityInterpolation(t, u)

interp_summary(sol)

NoRootFind

LeftRootFind

RightRootFind

RootfindOpt

AlgorithmInterpretation

alg_interpretation(alg)

Arguments

t, u, du

Times, states and derivatives.

sol

A solution.

alg

An algorithm.

Value

A function of time, a description, an option or the interpretation.

Details

RootfindOpt lists NoRootFind, LeftRootFind and RightRootFind, the values of the rootfind argument of ContinuousCallback(). AlgorithmInterpretation lists Ito and Stratonovich, and alg_interpretation(alg) gives the interpretation of an SDE algorithm.

Examples

f <- HermiteInterpolation(c(0, 1), rbind(0, 1), rbind(0, 2))
f(0.5)
#> [1] 0.25
alg_interpretation(EulerHeun())
#> [1] "Stratonovich"