Type Alias Out
pub type Out = fn(&NalgebraVec<f64>, &NalgebraVec<f64>, f64, &Covariates, &mut NalgebraVec<f64>);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;
};