Trait State

pub trait State {
    // Required method
    fn add_bolus(&mut self, input: usize, amount: f64);
}
Expand description

Trait for state vectors that can receive bolus doses.

Required Methods§

fn add_bolus(&mut self, input: usize, amount: f64)

Add a bolus dose to the state at the specified input compartment.

§Parameters
  • input: The compartment index
  • amount: The bolus amount

Implementations on Foreign Types§

§

impl State for Vec<Matrix<f64, Dyn, Const<1>, VecStorage<f64, Dyn, Const<1>>>>

State trait implementation for particle-based SDE simulation.

This implementation allows adding bolus doses to all particles in the system.

§

fn add_bolus(&mut self, input: usize, amount: f64)

Adds a bolus dose to a specific input compartment across all particles.

§Arguments
  • input - Index of the input compartment
  • amount - Amount to add to the compartment
§

impl State for Matrix<f64, Dyn, Const<1>, VecStorage<f64, Dyn, Const<1>>>

§

fn add_bolus(&mut self, input: usize, amount: f64)

Implementors§