pymgipsim.VirtualPatient.Models.T1DM.ExtHovorka.Model


Module attributes

time

This module provides various functions to manipulate time values.

class Model(sampling_time)[source]

Bases: BaseModel, UnitConversion

Implements extended Hovorka model. Submodels: Carbohydrate absorption, Insulin Absorption…

Note

20 patients available in…

inputs

Container for model inputs.

Type:

Inputs

parameters

Container for model parameter values.

Type:

Parameters

states

Container for model state values.

Type:

States

initial_conditions

Container for initial conditions of the state variables.

Type:

States

time

Timestamp object that stores the timesteps of the simulation horizon.

Type:

Timestamp

sampling_time

Sampling time of the simulation.

Type:

int

Examples

>>> model.parameters.as_array()
---------------------------
Returns a 2D numpy array where:
1st dim: Subjects
2nd dim: Parameters
---------------------------
static get_basal_equilibrium(parameters, basal_blucose)[source]

Define Parameters

static model(states, time, parameters, inputs)[source]

Define Parameters