Module prelude

Source
Expand description

A collection of commonly used items to simplify imports.

Re-exports§

pub use crate::algorithms;
pub use crate::algorithms::dispatch_algorithm;
pub use crate::algorithms::Algorithm;
pub use crate::routines;
pub use crate::routines::logger;
pub use crate::routines::initialization::Prior;
pub use pharmsol;
pub use crate::routines::settings::*;
pub use crate::structs::*;

Modules§

analytical
builder
covariate
data
equation
error_model
event
meta
models
ode
sde
simulator
structs

Macros§

fa
fetch_cov
fetch_params
lag

Structs§

Analytical
Model equation using analytical solutions.
Bolus
Represents an instantaneous input of drug
Covariate
A time-varying covariate consisting of multiple segments
CovariateSegment
A segment of a piecewise interpolation function for a covariate
Covariates
A collection of named covariates
Data
The main data container for pharmacokinetic/pharmacodynamic data
ErrorPoly
Error polynomial coefficients for the error model
HashMap
A hash map implemented with quadratic probing and SIMD lookup.
Infusion
Represents a continuous dose of drug over time
Meta
Model metadata container.
ODE
Observation
Represents an observation of drug concentration or other measured value
Occasion
An occasion within a subject’s dataset
SDE
Stochastic Differential Equation solver for pharmacometric models.
Subject
A subject in a pharmacometric dataset

Enums§

ErrorModel
Model for calculating observation errors in pharmacometric analyses
ErrorModelError
Event
Represents a pharmacokinetic/pharmacodynamic event
InterpolationMethod
Method used to interpolate covariate values between observations

Traits§

Equation
Trait for model equations that can be simulated.
EquationTypes
Trait defining the associated types for equations.
Predictions
Trait for prediction containers.
State
Trait for state vectors that can receive bolus doses.
SubjectBuilderExt
Extension trait for creating Subject instances using the builder pattern

Functions§

one_compartment
Analytical solution for one compartment model.
one_compartment_with_absorption
Analytical solution for one compartment model with first-order absorption.
three_compartments
Analytical for three compartments Assumptions:
three_compartments_with_absorption
Analytical solution for three compartment model with first-order absorption. Assumptions:
two_compartments
Analytical solution for two compartment model.
two_compartments_with_absorption
Analytical solution for two compartment model with first-order absorption.

Type Aliases§

AnalyticalEq
This closure represents an Analytical solution of the model. See [analytical] module for examples.
DiffEq
This closure represents the differential equation of the model.
Diffusion
This closure represents the diffusion term of a stochastic differential equation model.
Drift
This closure represents the drift term of a stochastic differential equation model.
Fa
This closure represents the fraction absorbed (also called bioavailability or protein binding) of the model.
Init
This closure represents the initial state of the system.
Lag
This closure represents the lag time of the model.
M
Type alias for matrix type used in simulations
Neqs
The number of states and output equations of the model.
Out
This closure represents the output equation of the model.
Result
Result<T, Error>
SecEq
This closure represents the secondary equation of the model.
T
Type alias for floating point values used in simulations
V
Type alias for state vector type used in simulations