Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions examples/analytical_readme.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//! This example showcases the use of the `analytical!` macro to define a simple one-compartment model with first-order absorption,
//! and the basic workflow of creating a subject, defining parameters, and estimating predictions.

Comment on lines +1 to +3
fn main() -> Result<(), pharmsol::PharmsolError> {
use pharmsol::{prelude::*, Parameters};

Expand Down
6 changes: 6 additions & 0 deletions examples/covariates.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//! Demonstrates time-varying covariates that scale parameters in an ODE model.
//!
//! This example defines a one-compartment oral absorption model where the
//! elimination rate `ke` is dynamically scaled by creatinine and age covariates.
//! It also shows lag-time handling and repeated dosing via the `ode!` macro.

fn main() {
use pharmsol::{prelude::*, Parameters};

Expand Down
7 changes: 7 additions & 0 deletions examples/dsl_jit_analytical_covariates.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//! Demonstrates JIT compilation of an analytical model from DSL source text,
//! compared against the equivalent `analytical!` macro.
//!
//! A one-compartment oral model with weight-based covariate scaling is defined
//! both as a DSL string (compiled at runtime) and as a declarative macro.
//! Predictions from both paths are printed side by side to verify parity.
//!
//! Run with:
//! cargo run --example dsl_jit_analytical_covariates --features dsl-jit

Expand Down
6 changes: 6 additions & 0 deletions examples/dsl_runtime_jit.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//! Demonstrates JIT compilation of an ODE model from DSL source text.
//!
//! A simple one-compartment IV infusion model is defined as a DSL string,
//! compiled at runtime via `compile_module_source_to_runtime`, and then used
//! to estimate predictions — no recompilation of the host binary needed.
//!
//! Run with:
//! cargo run --example dsl_runtime_jit --features dsl-jit

Expand Down
5 changes: 5 additions & 0 deletions examples/ode_readme.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
//! Shows the minimal ODE workflow with the `ode!` macro.
//!
//! Defines a one-compartment IV infusion model, creates a subject with
//! missing observations, sets named parameters, and estimates predictions.

fn main() -> Result<(), pharmsol::PharmsolError> {
use pharmsol::prelude::*;

Expand Down
6 changes: 6 additions & 0 deletions examples/one_compartment.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//! Compares analytical and ODE solutions for a one-compartment IV model.
//!
//! Both the `analytical!` and `ode!` macros define the same model. Predictions
//! and log-likelihoods are computed with each and printed side by side to
//! confirm they match.

fn main() -> Result<(), pharmsol::PharmsolError> {
use pharmsol::{prelude::*, Parameters};

Expand Down
6 changes: 6 additions & 0 deletions examples/sde_readme.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//! Shows the minimal SDE workflow with the `sde!` macro.
//!
//! Defines a one-compartment IV infusion model with diffusion noise on the
//! central compartment, creates a subject, sets named parameters, and
//! estimates predictions using particle-based simulation.

fn main() -> Result<(), pharmsol::PharmsolError> {
use pharmsol::{prelude::*, Parameters};

Expand Down
Loading