Type Alias Out
pub type Out = fn(_: &Matrix<f64, Dyn, Const<1>, VecStorage<f64, Dyn, Const<1>>>, _: &Matrix<f64, Dyn, Const<1>, VecStorage<f64, Dyn, Const<1>>>, _: f64, _: &Covariates, _: &mut Matrix<f64, Dyn, Const<1>, VecStorage<f64, Dyn, Const<1>>>);
Expand description
This closure represents the output equation of the model.
§Parameters
x
: The state vector at time tp
: The parameters of the model; Use the [fetch_params!] macro to extract the parameterst
: The time at which the output equation is evaluatedcov
: A reference to the covariates at time t; Use the [fetch_cov!] macro to extract the covariatesy
: A mutable reference to the output vector at time t
§Example
ⓘ
use pharmsol::*;
let out = |x, p, t, cov, y| {
fetch_params!(p, ka, ke, v);
y[0] = x[1] / v;
};