Function three_compartments

pub fn three_compartments(
    x: &NalgebraVec<f64>,
    p: &NalgebraVec<f64>,
    t: f64,
    rateiv: NalgebraVec<f64>,
    _cov: &Covariates,
) -> NalgebraVec<f64>
Expand description

Analytical for three compartments Assumptions:

  • p is a vector of length 5 with k10, k12, k13, k21 and k31 in that order. k10 represents the elimination rate constant from compartment 1 (central). The remaining parameters of the form kij represent the transfer rate constants from the ith to the jth compartment
  • rateiv is a vector of length 1 with the value of the infusion rate (only one drug)
  • x is a vector of length 3
  • covariates are not used