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
- auc
- Trapezoidal AUC/AUMC calculation on
&[f64]slices. - builder
- cache
- Cache mechanisms for [Equation]s
- covariate
- data
- equation
- error_
model - event
- meta
- models
- observation_
error - Error types for observation data processing
- ode
- parser
- residual_
error - Residual error models for parametric algorithms (SAEM, FOCE, etc.)
- row
- Row representation of Data for flexible parsing
- sde
- simulator
- structs
Macros§
- fa
- fetch_
cov - fetch_
params - lag
- ode
- Build an
equation::ODEwhile inferringnstates,ndrugsandnoutfrom the maximum literal bracket-indices used in the closures.
Structs§
- Analytical
- Model equation using analytical solutions.
- Assay
Error Models - Collection of assay/measurement error models for all outputs.
- Bolus
- Represents an instantaneous input of drug
- Covariate
- A time-varying covariate consisting of computed segments
- Covariates
- A collection of Covariates
- Data
- The main data container for pharmacokinetic/pharmacodynamic data
- Error
Poly - 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.
- NCAOptions
- Complete NCA configuration
- Neqs
- The dimensions of the model: number of states, drug inputs, and output equations.
- ODE
- Observation
- Represents an observation of drug concentration or other measured value
- Occasion
- An occasion within a subject’s dataset
- Prediction
- Prediction holds an observation and its prediction at a single time point.
- Prediction
Cache - Thread-safe LRU cache for subject predictions.
- Residual
Error Models - Collection of residual error models for multiple output equations
- SDE
- Stochastic Differential Equation solver for pharmacometric models.
- SdeLikelihood
Cache - Cache for SDE likelihood values.
- Subject
- A subject in a pharmacometric dataset
- SubjectNCA
Result - Structured NCA result for a single subject
- Subject
Predictions - Container for predictions associated with a single subject.
Enums§
- AUCMethod
- AUC calculation method
- Assay
Error Model - Model for calculating observation errors in pharmacometric analyses
- BLQRule
- BLQ (Below Limit of Quantification) handling rule
- Censor
- Covariate
Error - Error type for covariate operations
- EqnKind
- Error
Model Error - Event
- Represents a pharmacokinetic/pharmacodynamic event
- Explicit
RkTableau - Tableau for
OdeSolver::ExplicitRk. - Factor
- Parameter that can be either fixed or variable for estimation
- Interpolation
- Method used to interpolate covariate values between observations
- Metrics
Error - Error type for observation metric computations
- Observation
Error - Errors arising from observation data processing
- OdeSolver
- ODE solver selection.
- Pharmsol
Error - Residual
Error Model - Residual error model for parametric estimation algorithms.
- Route
- Administration route for a dosing event
- Sdirk
Tableau - Tableau for
OdeSolver::Sdirk.
Constants§
- DEFAULT_
CACHE_ SIZE - Default maximum number of entries per cache.
Traits§
- Cache
- Trait for enabling prediction caching on equation types.
- Equation
- Trait for model equations that can be simulated.
- Equation
Types - Trait defining the associated types for equations.
- NCA
- Extension trait for Non-Compartmental Analysis
- NCAPopulation
- Extension trait for structured population-level NCA
- Observation
Metrics - Observation-level pharmacokinetic metrics (AUC, Cmax, Tmax, etc.)
- Predictions
- Trait for prediction containers.
- State
- Trait for state vectors that can receive bolus doses.
- Subject
Builder Ext - Extension trait for creating Subject instances using the builder pattern
Functions§
- auc
- ∫ C(t) dt from first to last time point. Tmax is auto-detected for
LinLog. - auc_
interval - Partial AUC over
[start, end], interpolating at boundaries. - aumc
- ∫ t·C(t) dt from first to last time point (for MRT = AUMC / AUC).
- get_e2
- Computes the effect metric for a dual-site pharmacodynamic model.
- interpolate_
linear - Linearly interpolate a value at
time. Clamps to boundary values. - one_
compartment - Analytical solution for one compartment model.
- one_
compartment_ cl - Analytical solution for one compartment model parameterized by clearance.
- one_
compartment_ cl_ with_ absorption - Analytical solution for one compartment model with first-order absorption, parameterized by clearance.
- one_
compartment_ with_ absorption - Analytical solution for one compartment model with first-order absorption.
- three_
compartments - Analytical for three compartments Assumptions:
- three_
compartments_ cl - Analytical solution for three compartment model parameterized by clearances.
- three_
compartments_ cl_ with_ absorption - Analytical solution for three compartment model with first-order absorption, parameterized by clearances.
- 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_ cl - Analytical solution for two compartment model parameterized by clearances.
- two_
compartments_ cl_ with_ absorption - Analytical solution for two compartment model with first-order absorption, parameterized by clearances.
- two_
compartments_ with_ absorption - Analytical solution for two compartment model with first-order absorption.
Type Aliases§
- Analytical
Eq - This closure represents an Analytical solution of the model.
See
equation::analyticalmodule 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.
- Error
Model Deprecated - Deprecated alias for
AssayErrorModel. - Error
Models Deprecated - Deprecated alias for
AssayErrorModels. - 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
- 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