Skip to main content

Module prelude

Module prelude 

Source
Expand description

A collection of commonly used items to simplify imports.

Re-exports§

pub use super::logs::Logger;
pub use crate::algorithms;
pub use crate::algorithms::Algorithm;
pub use crate::estimation::NonParametric;
pub use crate::estimation::Parametric;
pub use crate::estimation::ErrorModels;
pub use crate::estimation::EstimationProblem;
pub use crate::estimation::FitProgress;
pub use crate::estimation::NcnpagConfig;
pub use crate::estimation::NonParametricAlgorithm;
pub use crate::estimation::NonparametricCycleProgress;
pub use crate::estimation::NpagConfig;
pub use crate::estimation::NpmapConfig;
pub use crate::estimation::NpodConfig;
pub use crate::estimation::ParametricAlgorithm;
pub use crate::estimation::SaemConfig;
pub use crate::model::parameter_space::BoundedParameter;
pub use crate::model::parameter_space::Parameter;
pub use crate::model::parameter_space::ParameterScale;
pub use crate::model::parameter_space::ParameterSpace;
pub use crate::model::parameter_space::UnboundedParameter;
pub use crate::algorithms::nonparametric::CycleFlow;
pub use crate::algorithms::nonparametric::FitController;
pub use crate::algorithms::nonparametric::FitObserver;
pub use crate::estimation::nonparametric::CycleLog;
pub use crate::estimation::nonparametric::NPCycle;
pub use crate::estimation::nonparametric::NPPredictions;
pub use crate::estimation::nonparametric::NonParametricResult;
pub use crate::estimation::nonparametric::Posterior;
pub use crate::estimation::nonparametric::Psi;
pub use crate::estimation::nonparametric::Theta;
pub use crate::estimation::nonparametric::Weights;
pub use crate::iov::DiffusionConfig;
pub use crate::iov::DiffusionOptimize;
pub use crate::iov::DiffusionResult;
pub use crate::model::EquationMetadataSource;
pub use crate::model::ModelMetadata;
pub use crate::results::FitResult;
pub use crate::results::FitSummary;
pub use crate::results::IndividualSummary;
pub use crate::results::ParameterSummary;
pub use crate::results::PopulationSummary;
pub use pharmsol;

Modules§

data
equation
Handwritten equation families and their shared simulation interfaces.
models
simulator

Macros§

analytical
Define an analytical (closed‑form) PK model.
fa
fetch_cov
fetch_params
lag
ode
Define an ODE (ordinary differential equation) model.
sde
Define an SDE (stochastic differential equation) model.

Structs§

AssayErrorModels
Collection of assay/measurement error models for all outputs.
Covariates
A collection of [Covariate]s
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.
NCAOptions
Complete NCA configuration
ODE
Occasion
An occasion within a subject’s dataset
Parameters
Thin owned dense parameter storage for one support point.
Prediction
Prediction holds an observation and its prediction at a single time point.
PredictionCache
Thread-safe bounded cache for subject predictions.
SDE
Stochastic Differential Equation solver for pharmacometric models.
SdeLikelihoodCache
Cache for SDE likelihood values.
Subject
A subject in a pharmacometric dataset
SubjectNCAResult
Structured NCA result for a single subject
SubjectPredictions
Container for predictions associated with a single subject.

Enums§

AUCMethod
AUC calculation method
AssayErrorModel
Model for calculating observation errors in pharmacometric analyses
BLQRule
BLQ (Below Limit of Quantification) handling rule
Event
One scheduled item in a subject record.
ExplicitRkTableau
Tableau for OdeSolver::ExplicitRk.
Interpolation
Method used to interpolate covariate values between observations
MetricsError
Error type for observation metric computations
OdeSolver
ODE solver selection.
PharmsolError
Route
Administration route classification used by downstream analyses.
SdirkTableau
Tableau for OdeSolver::Sdirk.

Constants§

DEFAULT_CACHE_SIZE
Default maximum number of entries per cache.

Traits§

Equation
Trait for handwritten model equations that can be simulated.
EquationTypes
Associated state and prediction container types for an equation family.
NCA
Extension trait for Non-Compartmental Analysis
NCAPopulation
Extension trait for structured population-level NCA
ObservationMetrics
Observation-level pharmacokinetic metrics (AUC, Cmax, Tmax, etc.)
Predictions
Trait for prediction containers.
SubjectBuilderExt
Extension trait that enables Subject::builder(...).

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_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§

Result
Result<T, Error>