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 crate::routines::settings::ErrorModel;
pub use crate::routines::settings::*;
pub use crate::structs::*;
Modules§
Macros§
Structs§
- Analytical
- Bolus
- An instantaenous input of drug
- Covariate
- A Covariate is a collection of CovariateSegments, which allows for interpolation of covariate values
- Covariate
Segment - A CovariateSegment is a segment of the piece-wise interpolation of a Covariate
- Covariates
- Covariates is a collection of Covariate
- Data
- Data is a collection of Subjects, which are collections of Occasions, which are collections of Events
- HashMap
- A hash map implemented with quadratic probing and SIMD lookup.
- Infusion
- A continuous dose of drug
- Meta
- This structs holds the metadata of the model
- ODE
- Observation
- An observation of drug concentration or covariates
- Occasion
- An Occasion is a collection of events, for a given Subject, that are from a specific occasion
- SDE
- Subject
- Subject is a collection of blocks for one individual
Enums§
- Error
Type - Event
- An Event can be a Bolus, Infusion, or Observation
- Interpolation
Method
Traits§
Functions§
- one_
compartment - Analytical for one compartment Assumptions:
- one_
compartment_ with_ absorption - Analytical for one compartment with absorption Assumptions:
- two_
compartments - Analytical for two compartment Assumptions:
- two_
compartments_ with_ absorption - Analytical for two compartment with absorption Assumptions:
Type Aliases§
- Analytical
Eq - This closure represents an Analytical solution of the model, see [analytical] module for examples. Params:
- DiffEq
- This closure represents the differential equation of the model: Params:
- Diffusion
- This closure represents the diffusion term of the model: Params:
- Drift
- This closure represents the drift term of the model: Params:
- Fa
- This closure represents the fraction absorbed (also called bioavailability or protein binding) of the model, the fa term is used to adjust the amount of drug that is absorbed into the system. Params:
- Init
- This closure represents the initial state of the system: Params:
- Lag
- This closure represents the lag time of the model, the lag term delays the only the boluses going into an specific comparment. Params:
- Neqs
- The number of states and output equations of the model The first element is the number of states and the second element is the number of output equations This is used to initialize the state vector and the output vector Example:
- Out
- This closure represents the output equation of the model: Params:
- Result
Result<T, Error>
- SecEq
- This closure represents the secondary equation of the model, secondary equations are used to update the parameter values based on the covariates. Params: