two_compartments_cl

Function two_compartments_cl 

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

Analytical solution for two compartment model parameterized by clearances.

Converts CL/Q/Vc/Vp to ke/kcp/kpc and delegates to two_compartments.

ยงAssumptions

  • p is a vector of length 4 with CL, Q, Vc and Vp in that order
  • rateiv is a vector of length 1 with the value of the infusion rate (only one drug)
  • x is a vector of length 2
  • covariates are not used