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: Params:
- x: The state vector at time t
- p: The parameters of the model; Use the [fetch_params!] macro to extract the parameters
- t: The time at which the output equation is evaluated
- cov: A reference to the covariates at time t; Use the [fetch_cov!] macro to extract the covariates
- y: 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;
};