Module sim::input_modeling

source ·
Expand description

The input modeling module provides a foundation for configurable model behaviors, whether that is deterministic or stochastic. The module includes a set of random variable distributions for use in atomic models, a system around “thinning” for non-stationary model behaviors, and a structure around random number generation.


  • pub use random_variable::Boolean as BooleanRandomVariable;
  • pub use random_variable::Continuous as ContinuousRandomVariable;
  • pub use random_variable::Discrete as DiscreteRandomVariable;
  • pub use random_variable::Index as IndexRandomVariable;
  • pub use thinning::Thinning;
  • pub use dynamic_rng::dyn_rng;
  • pub use dynamic_rng::some_dyn_rng;


  • Random variables underpin both stochastic and deterministic model behaviors, in that deterministic operation is simply a random variable with a single value of probability 1. Common distributions, with their common parameterizations, are wrapped in enums Continuous, Boolean, Discrete, and Index.