Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
mitk::TwoCompartmentExchangeModelDifferentialEquations Class Reference

Helper Class for NumericTwoCompartmentExchangeModel: Defines the differential equations (Mass Balance Equations) in the 2 Compartment Exchange model. The 2 Compartment Exchange model is defined via the mass balance equations vp * dCp(t)/dt = F * (CA(t) - Cp(t)) - PS * (Cp(t) - Ce(t)) ve * dCe(t)/dt = PS * (Cp(t) - Ce(t)) Boost ODEINT performs a stepwise numeric integration (e.g. via Runge-Kutta method) of the initial value problem x' = dx/dt = f(x,t) It needs an operator () (a functor) that calculates dx/dt = dxdt for a given x and t. Parameters are F, PS, ve and vp and the time dependent Ca(t) =AIF, that is interpolated to the current step t. More...

#include <mitkTwoCompartmentExchangeModelDifferentialEquations.h>

Public Types

typedef std::vector< double > AIFType
 

Public Member Functions

void operator() (const mitk::NumericTwoCompartmentExchangeModel::state_type &x, mitk::NumericTwoCompartmentExchangeModel::state_type &dxdt, const double t)
 Functor for differential equation of Physiological Pharmacokinetic Brix Model Takes current state x = x(t) and time t and calculates the corresponding dxdt = dx/dt. More...
 
 TwoCompartmentExchangeModelDifferentialEquations ()
 
void initialize (double Fp, double ps, double fi, double fp)
 Initialize class with parameters F/Vp, PS/Vp, fi and fp that are free fit parameters. More...
 
void setAIF (AIFType &aif)
 
void setAIFTimeGrid (AIFType &grid)
 

Detailed Description

Helper Class for NumericTwoCompartmentExchangeModel: Defines the differential equations (Mass Balance Equations) in the 2 Compartment Exchange model. The 2 Compartment Exchange model is defined via the mass balance equations vp * dCp(t)/dt = F * (CA(t) - Cp(t)) - PS * (Cp(t) - Ce(t)) ve * dCe(t)/dt = PS * (Cp(t) - Ce(t)) Boost ODEINT performs a stepwise numeric integration (e.g. via Runge-Kutta method) of the initial value problem x' = dx/dt = f(x,t) It needs an operator () (a functor) that calculates dx/dt = dxdt for a given x and t. Parameters are F, PS, ve and vp and the time dependent Ca(t) =AIF, that is interpolated to the current step t.

Definition at line 30 of file mitkTwoCompartmentExchangeModelDifferentialEquations.h.

Member Typedef Documentation

◆ AIFType

Constructor & Destructor Documentation

◆ TwoCompartmentExchangeModelDifferentialEquations()

mitk::TwoCompartmentExchangeModelDifferentialEquations::TwoCompartmentExchangeModelDifferentialEquations ( )
inline

Member Function Documentation

◆ initialize()

void mitk::TwoCompartmentExchangeModelDifferentialEquations::initialize ( double  Fp,
double  ps,
double  fi,
double  fp 
)
inline

Initialize class with parameters F/Vp, PS/Vp, fi and fp that are free fit parameters.

Definition at line 54 of file mitkTwoCompartmentExchangeModelDifferentialEquations.h.

◆ operator()()

void mitk::TwoCompartmentExchangeModelDifferentialEquations::operator() ( const mitk::NumericTwoCompartmentExchangeModel::state_type x,
mitk::NumericTwoCompartmentExchangeModel::state_type dxdt,
const double  t 
)
inline

Functor for differential equation of Physiological Pharmacokinetic Brix Model Takes current state x = x(t) and time t and calculates the corresponding dxdt = dx/dt.

Definition at line 39 of file mitkTwoCompartmentExchangeModelDifferentialEquations.h.

◆ setAIF()

void mitk::TwoCompartmentExchangeModelDifferentialEquations::setAIF ( AIFType aif)
inline

◆ setAIFTimeGrid()

void mitk::TwoCompartmentExchangeModelDifferentialEquations::setAIFTimeGrid ( AIFType grid)
inline

The documentation for this class was generated from the following file: