three_compartments_cl_with_absorption

Function three_compartments_cl_with_absorption 

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

Analytical solution for three compartment model with first-order absorption, parameterized by clearances.

Converts CL/Q2/Q3/Vc/V2/V3 to k10/k12/k13/k21/k31 and delegates to three_compartments_with_absorption.

ยงAssumptions

  • p is a vector of length 7 with ka, CL, Q2, Q3, Vc, V2 and V3 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 4
  • covariates are not used